Add more checks to investigate SupervisedUserPrefStore crash at startup.
[chromium-blink-merge.git] / chrome / browser / android / location_settings.h
blob09a4fe3096d8591907fa6dda34960642d387c4c5
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 // and browser-wide (in Chrome location settings).
18 virtual bool IsLocationEnabled() = 0;
21 #endif // CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_