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

Side by Side Diff: chrome/android/testshell/testshell_google_location_settings_helper.cc

Issue 23345004: Fix Android strict-mode violation in GeoLocation info bar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments / fix tests Created 6 years, 10 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 (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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698