Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 } |
| OLD | NEW |