Rename isSystemLocationEnabled to isLocationEnabled, as per internal review (185995).
[chromium-blink-merge.git] / chrome / browser / android / google_location_settings_helper.h
blob570c212f8cb8252d71efb09826e11d9958358dd9
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
11 // the infobar.
12 class GoogleLocationSettingsHelper {
13 public:
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; }
23 protected:
24 GoogleLocationSettingsHelper() {}
26 private:
27 DISALLOW_COPY_AND_ASSIGN(GoogleLocationSettingsHelper);
30 #endif // CHROME_BROWSER_ANDROID_GOOGLE_LOCATION_SETTINGS_HELPER_H_