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

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

Issue 441883003: Simplify Android geolocation permission checks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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.cc
diff --git a/chrome/browser/android/google_location_settings_helper.cc b/chrome/browser/android/google_location_settings_helper.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3dc8e004a75ea604f61b6942d695f27277fc0b2a
--- /dev/null
+++ b/chrome/browser/android/google_location_settings_helper.cc
@@ -0,0 +1,31 @@
+// Copyright 2014 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.
+
+#include "chrome/browser/android/google_location_settings_helper.h"
+
+// Temporary stubs for a 3 way patch
+
+std::string GoogleLocationSettingsHelper::GetAcceptButtonLabel(bool allow) {
+ return std::string();
+}
+
+bool GoogleLocationSettingsHelper::IsAllowLabel() {
+ return false;
+}
+
+void GoogleLocationSettingsHelper::ShowGoogleLocationSettings() {
+}
+
+bool GoogleLocationSettingsHelper::IsMasterLocationSettingEnabled() {
+ return false;
+}
+
+bool GoogleLocationSettingsHelper::IsGoogleAppsLocationSettingEnabled() {
+ return false;
+}
+
+bool GoogleLocationSettingsHelper::IsSystemLocationEnabled() {
+ return IsMasterLocationSettingEnabled() &&
+ IsGoogleAppsLocationSettingEnabled();
+}

Powered by Google App Engine
This is Rietveld 408576698