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

Unified Diff: chrome/browser/android/google_location_settings_helper.h

Issue 441883003: Simplify Android geolocation permission checks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/google_location_settings_helper.h
diff --git a/chrome/browser/android/google_location_settings_helper.h b/chrome/browser/android/google_location_settings_helper.h
index 6d6a513fa72be06fe6d6031fefaad2462c7b0bbd..a4fbb0633f0c4f50009e7dedb6723d9f9ea36bf8 100644
--- a/chrome/browser/android/google_location_settings_helper.h
+++ b/chrome/browser/android/google_location_settings_helper.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -17,17 +17,20 @@ class GoogleLocationSettingsHelper {
static GoogleLocationSettingsHelper* Create();
- virtual std::string GetAcceptButtonLabel(bool allow) = 0;
- virtual void ShowGoogleLocationSettings() = 0;
// Checks both Master and Google Apps location setting to see
// if we should use "Allow" in the accept button.
- virtual bool IsAllowLabel() = 0;
virtual bool IsMasterLocationSettingEnabled() = 0;
virtual bool IsGoogleAppsLocationSettingEnabled() = 0;
protected:
GoogleLocationSettingsHelper() {}
+ // TODO(miguelg) Remove these three methods once the downstream
+ // dependencies get updated.
+ virtual std::string GetAcceptButtonLabel(bool allow);
+ virtual bool IsAllowLabel();
+ virtual void ShowGoogleLocationSettings();
+
private:
DISALLOW_COPY_AND_ASSIGN(GoogleLocationSettingsHelper);

Powered by Google App Engine
This is Rietveld 408576698