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

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

Issue 2709883005: Stubs for triggering the LSD in Clank (Closed)
Patch Set: Group location settings dialog enums into a single java_cpp_enum rule 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
« no previous file with comments | « chrome/browser/android/mock_location_settings.h ('k') | components/location/android/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..27de84236ed8144ee2d27fe5fc784440db383209 100644
--- a/chrome/browser/android/mock_location_settings.cc
+++ b/chrome/browser/android/mock_location_settings.cc
@@ -32,3 +32,14 @@ bool MockLocationSettings::CanSitesRequestLocationPermission(
return IsMasterLocationSettingEnabled() &&
IsGoogleAppsLocationSettingEnabled();
}
+
+bool MockLocationSettings::CanPromptToEnableSystemLocationSetting() {
+ return false;
+}
+
+void MockLocationSettings::PromptToEnableSystemLocationSetting(
+ const LocationSettingsDialogContext prompt_context,
+ content::WebContents* web_contents,
+ LocationSettingsDialogOutcomeCallback callback) {
+ std::move(callback).Run(LocationSettingsDialogOutcome::NO_PROMPT);
+}
« no previous file with comments | « chrome/browser/android/mock_location_settings.h ('k') | components/location/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698