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..b5fe76631cc1cb53a0b1770e5058a35e4b656fb9 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 allow ? "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 true; |
+} |