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

Unified Diff: device/geolocation/mock_location_provider.h

Issue 2226143002: Gets rid of the LocationArbitrator interface, in preference for LocationProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated location_provider_android.h Created 4 years, 4 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/mock_location_provider.h
diff --git a/device/geolocation/mock_location_provider.h b/device/geolocation/mock_location_provider.h
index c3357103f03ebc35c7c8430d2c259af9f23594c6..95a3e2bed237bbdbb4968ca99421befd28eb0094 100644
--- a/device/geolocation/mock_location_provider.h
+++ b/device/geolocation/mock_location_provider.h
@@ -23,6 +23,8 @@ class MockLocationProvider : public LocationProviderBase {
MockLocationProvider();
~MockLocationProvider() override;
+ bool providers_started() const { return state_ != STOPPED; }
Kevin M 2016/08/15 19:12:46 This style of inline getter is only really allowed
CJ 2016/08/15 20:11:51 Done.
+
// Updates listeners with the new position.
void HandlePositionChanged(const Geoposition& position);

Powered by Google App Engine
This is Rietveld 408576698