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

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

Issue 815343005: Clean up geolocation code now that it's all upstream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: renamed IsSystemLocationEnabled -> IsLocationEnabled Created 5 years, 11 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
OLDNEW
(Empty)
1 // Copyright 2015 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/app_google_location_settings_helper.h"
6
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h"
9 #include "jni/LocationSettings_jni.h"
10
11 using base::android::AttachCurrentThread;
12 using base::android::CheckException;
13 using base::android::ScopedJavaLocalRef;
14
15 AppGoogleLocationSettingsHelper::AppGoogleLocationSettingsHelper()
16 : GoogleLocationSettingsHelper() {
17 }
18
19 AppGoogleLocationSettingsHelper::~AppGoogleLocationSettingsHelper() {
20 }
21
22 // TODO(finnur): Rename this function IsLocationEnabled.
23 bool AppGoogleLocationSettingsHelper::IsSystemLocationEnabled() {
24 JNIEnv* env = AttachCurrentThread();
25 return Java_LocationSettings_areAllLocationSettingsEnabled(env);
26 }
27
28 // Register native methods
29
30 bool AppGoogleLocationSettingsHelper::Register(JNIEnv* env) {
31 return RegisterNativesImpl(env);
32 }
OLDNEW
« no previous file with comments | « chrome/browser/android/app_google_location_settings_helper.h ('k') | chrome/browser/android/chrome_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698