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

Side by Side 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, 9 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/mock_location_settings.h" 5 #include "chrome/browser/android/mock_location_settings.h"
6 6
7 bool MockLocationSettings::master_location_enabled = false; 7 bool MockLocationSettings::master_location_enabled = false;
8 bool MockLocationSettings::google_apps_location_enabled = false; 8 bool MockLocationSettings::google_apps_location_enabled = false;
9 9
10 MockLocationSettings::MockLocationSettings() : LocationSettings() { 10 MockLocationSettings::MockLocationSettings() : LocationSettings() {
(...skipping 14 matching lines...) Expand all
25 25
26 bool MockLocationSettings::IsMasterLocationSettingEnabled() { 26 bool MockLocationSettings::IsMasterLocationSettingEnabled() {
27 return master_location_enabled; 27 return master_location_enabled;
28 } 28 }
29 29
30 bool MockLocationSettings::CanSitesRequestLocationPermission( 30 bool MockLocationSettings::CanSitesRequestLocationPermission(
31 content::WebContents* web_contents) { 31 content::WebContents* web_contents) {
32 return IsMasterLocationSettingEnabled() && 32 return IsMasterLocationSettingEnabled() &&
33 IsGoogleAppsLocationSettingEnabled(); 33 IsGoogleAppsLocationSettingEnabled();
34 } 34 }
35
36 bool MockLocationSettings::CanPromptToEnableSystemLocationSetting() {
37 return false;
38 }
39
40 void MockLocationSettings::PromptToEnableSystemLocationSetting(
41 const LocationSettingsDialogContext prompt_context,
42 content::WebContents* web_contents,
43 LocationSettingsDialogOutcomeCallback callback) {
44 std::move(callback).Run(LocationSettingsDialogOutcome::NO_PROMPT);
45 }
OLDNEW
« 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