1 // Copyright 2012 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_GOOGLE_LOCATION_SETTINGS_HELPER_H_
6 #define CHROME_BROWSER_ANDROID_GOOGLE_LOCATION_SETTINGS_HELPER_H_
8 #include "base/values.h"
10 // This class is needed to fetch the current location setting and provide it to
12 class GoogleLocationSettingsHelper
{
14 virtual ~GoogleLocationSettingsHelper() {}
16 static GoogleLocationSettingsHelper
* Create();
18 virtual bool IsLocationEnabled() { return IsSystemLocationEnabled(); }
20 // Soon to be deprecated, please use IsLocationEnabled instead.
21 virtual bool IsSystemLocationEnabled() { return false; }
24 GoogleLocationSettingsHelper() {}
27 DISALLOW_COPY_AND_ASSIGN(GoogleLocationSettingsHelper
);
30 #endif // CHROME_BROWSER_ANDROID_GOOGLE_LOCATION_SETTINGS_HELPER_H_