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

Side by Side Diff: chrome/browser/android/google_location_settings_helper_factory.cc

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, 1 month 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 #include "chrome/browser/android/google_location_settings_helper_factory.h"
6
7 #include "base/logging.h"
8 #include "base/android/jni_android.h"
9 #include "base/android/jni_string.h"
10 #include "jni/GoogleLocationSettingsHelperStub_jni.h"
11
12 GoogleLocationSettingsHelperFactory::GoogleLocationSettingsHelperFactory() {
13 }
14
15 GoogleLocationSettingsHelperFactory::~GoogleLocationSettingsHelperFactory() {
16 }
17
18 const base::android::ScopedJavaGlobalRef<jobject>&
19 GoogleLocationSettingsHelperFactory::GetHelperInstance() {
20 JNIEnv* env = base::android::AttachCurrentThread();
21 java_google_location_settings_helper_.Reset(
22 Java_GoogleLocationSettingsHelperStub_createInstance(env,
23 base::android::GetApplicationContext()));
24 return java_google_location_settings_helper_;
25 }
26
27 // Register native methods
28
29 bool GoogleLocationSettingsHelperFactory::Register(JNIEnv* env) {
30 return RegisterNativesImpl(env);
31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698