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

Side by Side Diff: chrome/browser/android/location_settings_impl.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: removed unused code 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/app_google_location_settings_helper.h" 5 #include "chrome/browser/android/location_settings_impl.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h"
9 #include "jni/LocationSettings_jni.h" 8 #include "jni/LocationSettings_jni.h"
10 9
11 using base::android::AttachCurrentThread; 10 using base::android::AttachCurrentThread;
12 using base::android::CheckException;
13 using base::android::ScopedJavaLocalRef;
14 11
15 AppGoogleLocationSettingsHelper::AppGoogleLocationSettingsHelper() 12 LocationSettingsImpl::LocationSettingsImpl() : LocationSettings() {}
16 : GoogleLocationSettingsHelper() {
17 }
18 13
19 AppGoogleLocationSettingsHelper::~AppGoogleLocationSettingsHelper() { 14 LocationSettingsImpl::~LocationSettingsImpl() {}
20 }
21 15
22 // TODO(finnur): Rename this function IsLocationEnabled. 16 // TODO(finnur): Rename this function IsLocationEnabled.
23 bool AppGoogleLocationSettingsHelper::IsSystemLocationEnabled() { 17 bool LocationSettingsImpl::IsSystemLocationEnabled() {
24 JNIEnv* env = AttachCurrentThread(); 18 JNIEnv* env = AttachCurrentThread();
25 return Java_LocationSettings_areAllLocationSettingsEnabled(env); 19 return Java_LocationSettings_areAllLocationSettingsEnabled(env);
26 } 20 }
27 21
28 // Register native methods 22 // Register native methods
29 23
30 bool AppGoogleLocationSettingsHelper::Register(JNIEnv* env) { 24 bool LocationSettingsImpl::Register(JNIEnv* env) {
31 return RegisterNativesImpl(env); 25 return RegisterNativesImpl(env);
32 } 26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698