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

Unified Diff: chrome/browser/android/mock_location_settings.cc

Issue 2709883005: Stubs for triggering the LSD in Clank (Closed)
Patch Set: Declare the dependency of components/location on WindowAndroid Created 3 years, 10 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/android/mock_location_settings.cc
diff --git a/chrome/browser/android/mock_location_settings.cc b/chrome/browser/android/mock_location_settings.cc
index 350306f4b5c0699ed622e45f4cbc3b73c77d5fc6..4ba343e0497da392c26ab2228ba6a6d919d56b18 100644
--- a/chrome/browser/android/mock_location_settings.cc
+++ b/chrome/browser/android/mock_location_settings.cc
@@ -4,6 +4,9 @@
#include "chrome/browser/android/mock_location_settings.h"
+using PromptContext = LocationSettings::PromptContext;
+using PromptOutcome = LocationSettings::PromptOutcome;
+
bool MockLocationSettings::master_location_enabled = false;
bool MockLocationSettings::google_apps_location_enabled = false;
@@ -32,3 +35,15 @@ bool MockLocationSettings::CanSitesRequestLocationPermission(
return IsMasterLocationSettingEnabled() &&
IsGoogleAppsLocationSettingEnabled();
}
+
+void MockLocationSettings::CanPromptToEnableSystemLocationSetting(
+ const base::Callback<void(bool can_prompt)>& callback) {
+ callback.Run(false);
+}
+
+void MockLocationSettings::PromptToEnableSystemLocationSetting(
+ const PromptContext prompt_context,
+ content::WebContents* web_contents,
+ const base::Callback<void(PromptOutcome prompt_outcome)>& callback) {
+ callback.Run(PromptOutcome::NO_PROMPT);
+}

Powered by Google App Engine
This is Rietveld 408576698