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 #ifndef CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_ |
| 6 #define CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 |
| 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 { |
| 13 public: |
| 14 virtual ~LocationSettings() {} |
| 15 |
| 16 // Returns true if location is enabled system-wide (in Android settings) |
| 17 // and browser-wide (in Chrome location settings). |
| 18 virtual bool IsLocationEnabled() = 0; |
| 19 }; |
| 20 |
| 21 #endif // CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_ |
OLD | NEW |