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

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: Updates 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 #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/GoogleLocationSettingsHelperImpl_jni.h"
11
12 const base::android::ScopedJavaGlobalRef<jobject>&
13 GoogleLocationSettingsHelperFactory::GetHelperInstance() {
14 JNIEnv* env = base::android::AttachCurrentThread();
15 java_google_location_settings_helper_.Reset(
16 Java_GoogleLocationSettingsHelperImpl_createInstance(env,
17 base::android::GetApplicationContext()));
18 return java_google_location_settings_helper_;
19 }
20
21 // Register native methods
22
23 bool GoogleLocationSettingsHelperFactory::Register(JNIEnv* env) {
24 return RegisterNativesImpl(env);
25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698