Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(962)

Unified Diff: chrome/browser/geolocation/geolocation_permission_context_android.cc

Issue 852593002: Allow overriding GoogleLocationSettingsHelper for tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/geolocation/geolocation_permission_context_android.cc
diff --git a/chrome/browser/geolocation/geolocation_permission_context_android.cc b/chrome/browser/geolocation/geolocation_permission_context_android.cc
index c5eac4e23deae01af383bddcb24ae3a6ad9690c3..f02c841cabb6ae6228c91f82ee0d5558dcd8d1be 100644
--- a/chrome/browser/geolocation/geolocation_permission_context_android.cc
+++ b/chrome/browser/geolocation/geolocation_permission_context_android.cc
@@ -98,3 +98,9 @@ void GeolocationPermissionContextAndroid::InterceptPermissionCheck(
const BrowserPermissionCallback& callback, bool granted) {
callback.Run(granted);
}
+
+void GeolocationPermissionContextAndroid::
+ SetGoogleLocationSettingsHelperForTesting(
+ scoped_ptr<GoogleLocationSettingsHelper> helper) {
+ google_location_settings_helper_ = helper.Pass();
+}

Powered by Google App Engine
This is Rietveld 408576698