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

Unified Diff: content/browser/geolocation/geolocation_service_impl.h

Issue 2080083002: Revert of Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: content/browser/geolocation/geolocation_service_impl.h
diff --git a/content/browser/geolocation/geolocation_service_impl.h b/content/browser/geolocation/geolocation_service_impl.h
index 9265db3bd72751102ef8973526a781e7f224d767..df37f8822176ee806044e4f27044c8daabe43b0a 100644
--- a/content/browser/geolocation/geolocation_service_impl.h
+++ b/content/browser/geolocation/geolocation_service_impl.h
@@ -41,9 +41,11 @@
void ClearOverride();
private:
+ typedef mojo::Callback<void(blink::mojom::GeopositionPtr)> PositionCallback;
+
// blink::mojom::GeolocationService:
void SetHighAccuracy(bool high_accuracy) override;
- void QueryNextPosition(const QueryNextPositionCallback& callback) override;
+ void QueryNextPosition(const PositionCallback& callback) override;
void OnConnectionError();
@@ -62,7 +64,7 @@
base::Closure update_callback_;
// The callback passed to QueryNextPosition.
- QueryNextPositionCallback position_callback_;
+ PositionCallback position_callback_;
// Valid iff SetOverride() has been called and ClearOverride() has not
// subsequently been called.

Powered by Google App Engine
This is Rietveld 408576698