| OLD | NEW |
| 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 } | |
| OLD | NEW |