Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Unified Diff: chrome/browser/android/location_settings.h

Issue 815343005: Clean up geolocation code now that it's all upstream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: renamed IsSystemLocationEnabled -> IsLocationEnabled Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/location_settings.h
diff --git a/chrome/browser/android/location_settings.h b/chrome/browser/android/location_settings.h
new file mode 100644
index 0000000000000000000000000000000000000000..09a4fe3096d8591907fa6dda34960642d387c4c5
--- /dev/null
+++ b/chrome/browser/android/location_settings.h
@@ -0,0 +1,21 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_
+#define CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_
+
+#include "base/macros.h"
+
+// This class determines whether Chrome can access the device's location,
+// i.e. whether location is enabled system-wide on the device.
+class LocationSettings {
+ public:
+ virtual ~LocationSettings() {}
+
+ // Returns true if location is enabled system-wide (in Android settings)
+ // and browser-wide (in Chrome location settings).
+ virtual bool IsLocationEnabled() = 0;
+};
+
+#endif // CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_
« no previous file with comments | « chrome/browser/android/google_location_settings_helper.h ('k') | chrome/browser/android/location_settings_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698