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

Side by Side Diff: chrome/browser/android/mock_location_settings.cc

Issue 2709883005: Stubs for triggering the LSD in Clank (Closed)
Patch Set: Incorporate first batch of comments 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
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 LocationSettingsDialogPromptContext prompt_context,
42 content::WebContents* web_contents,
43 LocationSettingsDialogPromptOutcomeCallback callback) {
44 std::move(callback).Run(LocationSettingsDialogPromptOutcome::NO_PROMPT);
benwells 2017/03/01 03:51:27 Again, I don't really understand the use of move h
45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698