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 #ifndef CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_
6 #define CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_
8 #include "base/macros.h"
10 // This class determines whether Chrome can access the device's location,
11 // i.e. whether location is enabled system-wide on the device.
12 class LocationSettings
{
14 virtual ~LocationSettings() {}
16 // Returns true if location is enabled system-wide (in Android settings).
17 virtual bool IsLocationEnabled() = 0;
20 #endif // CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_