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

Side by Side Diff: chrome/android/shell/chrome_shell_google_location_settings_helper.cc

Issue 441883003: Simplify Android geolocation permission checks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/android/shell/chrome_shell_google_location_settings_helper.h" 5 #include "chrome/android/shell/chrome_shell_google_location_settings_helper.h"
6 6
7 // Factory function 7 // Factory function
8 GoogleLocationSettingsHelper* GoogleLocationSettingsHelper::Create() { 8 GoogleLocationSettingsHelper* GoogleLocationSettingsHelper::Create() {
9 return new ChromeShellGoogleLocationSettingsHelper(); 9 return new ChromeShellGoogleLocationSettingsHelper();
10 } 10 }
11 11
12 ChromeShellGoogleLocationSettingsHelper:: 12 ChromeShellGoogleLocationSettingsHelper::
13 ChromeShellGoogleLocationSettingsHelper() 13 ChromeShellGoogleLocationSettingsHelper()
14 : GoogleLocationSettingsHelper() { 14 : GoogleLocationSettingsHelper() {
15 } 15 }
16 16
17 ChromeShellGoogleLocationSettingsHelper:: 17 ChromeShellGoogleLocationSettingsHelper::
18 ~ChromeShellGoogleLocationSettingsHelper() { 18 ~ChromeShellGoogleLocationSettingsHelper() {
19 } 19 }
20 20
21 std::string ChromeShellGoogleLocationSettingsHelper::GetAcceptButtonLabel( 21 bool ChromeShellGoogleLocationSettingsHelper::IsSystemLocationEnabled() {
22 bool allow) {
23 return "Allow";
24 }
25
26 void ChromeShellGoogleLocationSettingsHelper::ShowGoogleLocationSettings() {
27 }
28
29 bool ChromeShellGoogleLocationSettingsHelper::
30 IsGoogleAppsLocationSettingEnabled() {
31 return true; 22 return true;
32 } 23 }
33
34 bool ChromeShellGoogleLocationSettingsHelper::IsMasterLocationSettingEnabled() {
35 return true;
36 }
37
38 bool ChromeShellGoogleLocationSettingsHelper::IsAllowLabel() {
39 return true;
40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698