DescriptionAllow overriding GoogleLocationSettingsHelper for tests.
Previously, GoogleLocationSettingsHelper could be "overridden" only by
compiling in a different implementation of the static method
GoogleLocationSettingsHelper::Create(). This complicates the build
targets (since the default implementation of Create() can't be defined
in shared code, since test code needs a different implementation), and
complicates the process of upstreaming the internal implementation of
GoogleLocationSettingsHelper.
This CL keeps the static method, but adds a new method for overriding
the GoogleLocationSettingsHelper:
GeolocationPermissionContextAndroid::SetGoogleLocationSettingsHelperForTests().
In a later CL, the static method will be removed.
BUG=448400
Committed: https://crrev.com/ad75c73e7b29abf6f3e06ba71ea6a63140e430e6
Cr-Commit-Position: refs/heads/master@{#311317}
Patch Set 1 #
Total comments: 6
Patch Set 2 : addressed comments #
Messages
Total messages: 13 (3 generated)
|