OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/testshell/testshell_google_location_settings_helper.h" | 5 #include "chrome/android/testshell/testshell_google_location_settings_helper.h" |
6 | 6 |
7 // Factory function | 7 // Factory function |
8 GoogleLocationSettingsHelper* GoogleLocationSettingsHelper::Create() { | 8 GoogleLocationSettingsHelper* GoogleLocationSettingsHelper::Create() { |
9 return new TestShellGoogleLocationSettingsHelper(); | 9 return new TestShellGoogleLocationSettingsHelper(); |
10 } | 10 } |
11 | 11 |
12 TestShellGoogleLocationSettingsHelper::TestShellGoogleLocationSettingsHelper() | 12 TestShellGoogleLocationSettingsHelper::TestShellGoogleLocationSettingsHelper() |
13 : GoogleLocationSettingsHelper() { | 13 : GoogleLocationSettingsHelper() { |
14 } | 14 } |
15 | 15 |
16 TestShellGoogleLocationSettingsHelper:: | 16 TestShellGoogleLocationSettingsHelper:: |
17 ~TestShellGoogleLocationSettingsHelper() { | 17 ~TestShellGoogleLocationSettingsHelper() { |
18 } | 18 } |
19 | 19 |
20 std::string TestShellGoogleLocationSettingsHelper::GetAcceptButtonLabel() { | 20 std::string TestShellGoogleLocationSettingsHelper::GetAcceptButtonLabel( |
| 21 bool allow) { |
21 return "Allow"; | 22 return "Allow"; |
22 } | 23 } |
23 | 24 |
24 void TestShellGoogleLocationSettingsHelper::ShowGoogleLocationSettings() { | 25 void TestShellGoogleLocationSettingsHelper::ShowGoogleLocationSettings() { |
25 } | 26 } |
26 | 27 |
27 bool TestShellGoogleLocationSettingsHelper:: | 28 bool TestShellGoogleLocationSettingsHelper:: |
28 IsGoogleAppsLocationSettingEnabled() { | 29 IsGoogleAppsLocationSettingEnabled() { |
29 return true; | 30 return true; |
30 } | 31 } |
31 | 32 |
32 bool TestShellGoogleLocationSettingsHelper::IsMasterLocationSettingEnabled() { | 33 bool TestShellGoogleLocationSettingsHelper::IsMasterLocationSettingEnabled() { |
33 return true; | 34 return true; |
34 } | 35 } |
| 36 |
| 37 bool TestShellGoogleLocationSettingsHelper::IsAllowLabel() { |
| 38 return true; |
| 39 } |
OLD | NEW |