Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / android / location_settings_impl.cc
blob065dcc35bbdc7b34592297f3c28c116854f0c6e5
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.
5 #include "chrome/browser/android/location_settings_impl.h"
7 #include "base/android/jni_android.h"
8 #include "jni/LocationSettings_jni.h"
10 using base::android::AttachCurrentThread;
12 LocationSettingsImpl::LocationSettingsImpl() {}
14 LocationSettingsImpl::~LocationSettingsImpl() {}
16 bool LocationSettingsImpl::IsLocationEnabled() {
17 JNIEnv* env = AttachCurrentThread();
18 return Java_LocationSettings_staticIsSystemLocationSettingEnabled(env);
21 // Register native methods
23 bool LocationSettingsImpl::Register(JNIEnv* env) {
24 return RegisterNativesImpl(env);