Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / android / location_settings.h
blob810e43f9a0c6757bdc63916c26221356751a11c3
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 {
13 public:
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_