Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelperImpl.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelperImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelperImpl.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..742923c66952bb165eecfd3aff6c0410db975ca1 |
| --- /dev/null |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelperImpl.java |
| @@ -0,0 +1,43 @@ |
| +// 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 GoogleLocationSettingsHelperImpl implements GoogleLocationSettingsHelper { |
|
bulach
2012/10/23 13:06:26
nit: maybe "Stub" rather than Impl, since the real
Ramya
2012/10/23 21:57:14
Done.
|
| + |
| + private Context mApplicationContext; |
| + private static final String sDefaultInfoBarString = "Allow"; |
|
bulach
2012/10/23 13:06:26
since this is just a stub, maybe inline this in 26
Ramya
2012/10/23 21:57:14
Done.
|
| + |
| + public GoogleLocationSettingsHelperImpl(Context context) { |
| + mApplicationContext = context.getApplicationContext(); |
| + } |
| + |
| + @Override |
| + public String getInfoBarAllowTextFromLocationSetting() { |
| + return sDefaultInfoBarString; |
| + } |
| + |
| + @Override |
| + public boolean isGoogleAppsLocationSettingEnabled() { |
| + return true; |
| + } |
| + |
| + @Override |
| + public void startGoogleLocationSettingsActivity() { |
| + } |
| + |
| + @CalledByNative |
| + public static GoogleLocationSettingsHelper createInstance(Context context) { |
| + return new GoogleLocationSettingsHelperImpl(context); |
| + } |
| + |
| +} |