diff options
| author | 2024-07-17 16:43:52 -0400 | |
|---|---|---|
| committer | 2024-07-17 17:15:05 -0400 | |
| commit | 3fe6f8d21673fa6f8118a4ac63746779f0af14cf (patch) | |
| tree | 1def442244336cf69bd9e4b3548ca59f1814f3a7 /libs/androidfw/StringPool.cpp | |
| parent | d659822b0642f0994bcdd517ca900c4202050b8b (diff) | |
Refactor WebViewUpdateService context handling.
Previously, a number of the system interface methods took Context
parameters. However, the real update service implementation only stores
a context in order to pass it to these methods, and the mock
implementation of the system interface doesn't need a context at all. If
a context is needed in a system interface that currently doesn't have
one, this requires a change to the interface and tests.
Instead, just store the context in the implementation of the system
interface when it's created. This means we can remove the context
parameter throughout the rest of the code, simplifying the mock/test,
and future changes to the implementation can rely on having a context
available for all methods.
This is a pure refactor with no behaviour changes.
Bug: 310653407
Test: atest WebViewUpdateServiceTest
Flag: EXEMPT refactor
Change-Id: I53bf25ab2d5f9b2636ae279cd8ac72e473e97ee6
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions