OLD | NEW |
(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/location_settings_impl.h" |
| 6 |
| 7 #include "base/android/jni_android.h" |
| 8 #include "jni/LocationSettings_jni.h" |
| 9 |
| 10 using base::android::AttachCurrentThread; |
| 11 |
| 12 LocationSettingsImpl::LocationSettingsImpl() {} |
| 13 |
| 14 LocationSettingsImpl::~LocationSettingsImpl() {} |
| 15 |
| 16 bool LocationSettingsImpl::IsLocationEnabled() { |
| 17 JNIEnv* env = AttachCurrentThread(); |
| 18 return Java_LocationSettings_areAllLocationSettingsEnabled(env); |
| 19 } |
| 20 |
| 21 // Register native methods |
| 22 |
| 23 bool LocationSettingsImpl::Register(JNIEnv* env) { |
| 24 return RegisterNativesImpl(env); |
| 25 } |
OLD | NEW |