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

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

Issue 2126893003: Geolocation cleanup: make GeolocationDelegate::OverrideSystemLocationProvider return unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wez@ nit Created 4 years, 5 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/location_arbitrator_impl.h
diff --git a/content/browser/geolocation/location_arbitrator_impl.h b/content/browser/geolocation/location_arbitrator_impl.h
index c2cbf23e78f2f57117a1fec58596c3407ce73974..a3ccf168e88062675265a111889a37e6e391d23f 100644
--- a/content/browser/geolocation/location_arbitrator_impl.h
+++ b/content/browser/geolocation/location_arbitrator_impl.h
@@ -69,9 +69,9 @@ class CONTENT_EXPORT LocationArbitratorImpl : public LocationArbitrator {
virtual std::unique_ptr<LocationProvider> NewSystemLocationProvider();
virtual base::Time GetTimeNow() const;
- GeolocationDelegate* GetDelegateForTesting() { return delegate_; }
-
private:
+ friend class TestingLocationArbitrator;
+
// Provider will either be added to |providers_| or
// deleted on error (e.g. it fails to start).
void RegisterProvider(std::unique_ptr<LocationProvider> provider);
« no previous file with comments | « blimp/engine/app/blimp_content_browser_client.cc ('k') | content/browser/geolocation/location_arbitrator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698