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

Unified Diff: content/browser/geolocation/location_arbitrator_impl.cc

Issue 15968009: Clear Reference Location State When Providers are Stopped (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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
« no previous file with comments | « no previous file | content/browser/geolocation/location_arbitrator_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/geolocation/location_arbitrator_impl.cc
===================================================================
--- content/browser/geolocation/location_arbitrator_impl.cc (revision 203281)
+++ content/browser/geolocation/location_arbitrator_impl.cc (working copy)
@@ -70,6 +70,12 @@
}
void GeolocationArbitratorImpl::StopProviders() {
+ // Reset the reference location state (provider+position)
+ // so that future starts use fresh locations from
+ // the newly constructed providers.
+ position_provider_ = NULL;
+ position_ = Geoposition();
+
providers_.clear();
is_running_ = false;
}
« no previous file with comments | « no previous file | content/browser/geolocation/location_arbitrator_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698