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

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: 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" 8 #include "base/android/jni_string.h"
9 #include "jni/LocationSettings_jni.h" 9 #include "jni/LocationSettings_jni.h"
10 10
11 using base::android::AttachCurrentThread; 11 using base::android::AttachCurrentThread;
12 using base::android::CheckException; 12 using base::android::CheckException;
Michael van Ouwerkerk 2015/01/19 12:03:14 This is unused.
newt (away) 2015/01/20 16:58:51 Removed.
13 using base::android::ScopedJavaLocalRef; 13 using base::android::ScopedJavaLocalRef;
Michael van Ouwerkerk 2015/01/19 12:03:14 This is unused.
newt (away) 2015/01/20 16:58:51 Removed.
14 14
15 AppGoogleLocationSettingsHelper::AppGoogleLocationSettingsHelper() 15 LocationSettingsImpl::LocationSettingsImpl()
16 : GoogleLocationSettingsHelper() { 16 : LocationSettings() {
17 } 17 }
18 18
19 AppGoogleLocationSettingsHelper::~AppGoogleLocationSettingsHelper() { 19 LocationSettingsImpl::~LocationSettingsImpl() {}
20 }
21 20
22 // TODO(finnur): Rename this function IsLocationEnabled. 21 // TODO(finnur): Rename this function IsLocationEnabled.
23 bool AppGoogleLocationSettingsHelper::IsSystemLocationEnabled() { 22 bool LocationSettingsImpl::IsSystemLocationEnabled() {
24 JNIEnv* env = AttachCurrentThread(); 23 JNIEnv* env = AttachCurrentThread();
25 return Java_LocationSettings_areAllLocationSettingsEnabled(env); 24 return Java_LocationSettings_areAllLocationSettingsEnabled(env);
26 } 25 }
27 26
28 // Register native methods 27 // Register native methods
29 28
30 bool AppGoogleLocationSettingsHelper::Register(JNIEnv* env) { 29 bool LocationSettingsImpl::Register(JNIEnv* env) {
31 return RegisterNativesImpl(env); 30 return RegisterNativesImpl(env);
32 } 31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698