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

Unified Diff: device/geolocation/network_location_provider.h

Issue 2901413006: Prevent NetworkLocationProvider from sending wifi data if started low accuracy
Patch Set: Rebase Created 3 years, 7 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: device/geolocation/network_location_provider.h
diff --git a/device/geolocation/network_location_provider.h b/device/geolocation/network_location_provider.h
index 634da9a966586d9da773fdab28217e6163525bce..4e4d83d5ab30478acebcb48e9f8a808c41f9381c 100644
--- a/device/geolocation/network_location_provider.h
+++ b/device/geolocation/network_location_provider.h
@@ -91,6 +91,13 @@ class NetworkLocationProvider : public LocationProvider {
const base::string16& access_token,
const WifiData& wifi_data);
+ // If set to false, then wifi data will not be sent as part of the request,
+ // and position will be based on IP only.
+ bool high_accuracy_enabled_ = false;
+
+ // True if this provider was started.
+ bool is_started_ = false;
+
const scoped_refptr<AccessTokenStore> access_token_store_;
// The wifi data provider, acquired via global factories. Valid between
« no previous file with comments | « no previous file | device/geolocation/network_location_provider.cc » ('j') | device/geolocation/network_location_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698