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

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: Addresses kmarshall's #41 comments 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..d78b4ae2c1e83064125626f85a854375e190b955 100644
--- a/device/geolocation/mock_location_provider.h
+++ b/device/geolocation/mock_location_provider.h
@@ -23,13 +23,15 @@ class MockLocationProvider : public LocationProviderBase {
MockLocationProvider();
~MockLocationProvider() override;
+ bool IsProviderStarted() const;
+
// Updates listeners with the new position.
void HandlePositionChanged(const Geoposition& position);
// LocationProvider implementation.
bool StartProvider(bool high_accuracy) override;
void StopProvider() override;
- void GetPosition(Geoposition* position) override;
+ const Geoposition& GetPosition() override;
void OnPermissionGranted() override;
bool is_permission_granted_;

Powered by Google App Engine
This is Rietveld 408576698