Index: chrome/browser/android/mock_google_location_settings_helper.cc |
diff --git a/chrome/browser/android/mock_google_location_settings_helper.cc b/chrome/browser/android/mock_google_location_settings_helper.cc |
index 7d5d97e5fb9d25968b148be70ba7f2e1fb751eb8..8dc77678dae9ef52004845743d26e968882c884d 100644 |
--- a/chrome/browser/android/mock_google_location_settings_helper.cc |
+++ b/chrome/browser/android/mock_google_location_settings_helper.cc |
@@ -27,8 +27,8 @@ void MockGoogleLocationSettingsHelper::SetLocationStatus( |
google_apps_location_enabled = google_apps; |
} |
-std::string MockGoogleLocationSettingsHelper::GetAcceptButtonLabel() { |
- return google_apps_location_enabled ? "Allow" : "Settings"; |
+std::string MockGoogleLocationSettingsHelper::GetAcceptButtonLabel(bool allow) { |
+ return IsAllowLabel() ? "Allow" : "Settings"; |
} |
void MockGoogleLocationSettingsHelper::ShowGoogleLocationSettings() { |
@@ -46,3 +46,7 @@ bool MockGoogleLocationSettingsHelper::IsMasterLocationSettingEnabled() { |
bool MockGoogleLocationSettingsHelper::WasGoogleLocationSettingsCalled() { |
return was_google_location_settings_called; |
} |
+ |
+bool MockGoogleLocationSettingsHelper::IsAllowLabel() { |
+ return google_apps_location_enabled; |
+} |