Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3fe6f8d2 authored by Richard Coles's avatar Richard Coles
Browse files

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
parent d659822b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment