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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelperStub.java

Issue 11186010: Update geolocation infobar to handle Android system settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Failed to upload Created 8 years, 2 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/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelperStub.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelperStub.java b/chrome/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelperStub.java
new file mode 100644
index 0000000000000000000000000000000000000000..40f33e1b199256f5409ba411fe4a41e3de3a9671
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelperStub.java
@@ -0,0 +1,47 @@
+// Copyright (c) 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.
+
+package org.chromium.chrome.browser;
+
+import android.content.Context;
+
+import org.chromium.base.CalledByNative;
+
+/**
+ * Stub implementation in Chrome for GoogleLocationSettingsHelper.
+ */
+
+public class GoogleLocationSettingsHelperStub implements GoogleLocationSettingsHelper {
+
+ private Context mApplicationContext;
+
+ public GoogleLocationSettingsHelperStub(Context context) {
+ mApplicationContext = context.getApplicationContext();
+ }
+
+ @Override
+ public String getInfoBarAcceptLabel() {
+ return "Allow";
+ }
+
+ @Override
+ public boolean isMasterLocationSettingEnabled() {
+ return true;
+ }
+
+ @Override
+ public boolean isGoogleAppsLocationSettingEnabled() {
+ return true;
+ }
+
+ @Override
+ public void startGoogleLocationSettingsActivity() {
+ }
+
+ @CalledByNative
+ public static GoogleLocationSettingsHelper createInstance(Context context) {
+ return new GoogleLocationSettingsHelperStub(context);
+ }
+
+}

Powered by Google App Engine
This is Rietveld 408576698