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

Side by Side Diff: chrome/browser/android/google_location_settings_helper.h

Issue 11186010: Update geolocation infobar to handle Android system settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix conflict 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_ANDROID_GOOGLE_LOCATION_SETTINGS_HELPER_H_
6 #define CHROME_BROWSER_ANDROID_GOOGLE_LOCATION_SETTINGS_HELPER_H_
7
8 #include "base/android/jni_helper.h"
9 #include "base/android/scoped_java_ref.h"
10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/values.h"
13 #include "chrome/browser/android/google_location_settings_helper_factory.h"
14
15 /*
16 * This class is needed mainly for Android to fetch the current system location
John Knottenbelt 2012/10/17 10:28:29 delete "mainly for Android" - this file is already
Ramya 2012/10/22 23:57:11 Done.
17 * setting and update the infobar button label based on that information i.e,
18 * display "Allow" if google apps setting is set as enabled else, display
19 * "Settings" with a link to open the system location settings activity.
20 */
21 class GoogleLocationSettingsHelper {
22
23 public:
24 GoogleLocationSettingsHelper();
25 ~GoogleLocationSettingsHelper() {}
26 static void SetGoogleLocationSettingsHelperFactory(
27 GoogleLocationSettingsHelperFactory* factory);
28 std::string GetAcceptButtonLabel();
29 void ShowGoogleLocationSettings();
30 bool IsPlatformSettingEnabled();
31 static bool Register(JNIEnv* env);
32
33 private:
34 base::android::ScopedJavaGlobalRef<jobject>
35 java_google_location_settings_helper_;
36 static GoogleLocationSettingsHelperFactory* helper_factory_;
37
38
39 DISALLOW_COPY_AND_ASSIGN(GoogleLocationSettingsHelper);
40 };
41
42 #endif // CHROME_BROWSER_ANDROID_GOOGLE_LOCATION_SETTINGS_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698