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

Unified Diff: chrome/browser/extensions/api/dial/dial_api.h

Issue 2754703005: [Device Discovery] Make DialRegistry a Singleton (Closed)
Patch Set: Created 3 years, 9 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: chrome/browser/extensions/api/dial/dial_api.h
diff --git a/chrome/browser/extensions/api/dial/dial_api.h b/chrome/browser/extensions/api/dial/dial_api.h
index 7ee0d14e3ee811eeac88313aadc7c46fb2f4cd27..7ceed7f84a574c63f0fae58185740cc09dd38a60 100644
--- a/chrome/browser/extensions/api/dial/dial_api.h
+++ b/chrome/browser/extensions/api/dial/dial_api.h
@@ -92,8 +92,9 @@ class DialAPI : public RefcountedKeyedService,
Profile* profile_;
- // Created lazily on first access on the IO thread.
- std::unique_ptr<media_router::DialRegistry> dial_registry_;
+ // Created lazily on first access on the IO thread. Does not take ownership of
+ // |dial_registry_|.
+ scoped_refptr<media_router::DialRegistry> dial_registry_;
// Device data for testing.
std::unique_ptr<media_router::DialDeviceData> test_device_data_;

Powered by Google App Engine
This is Rietveld 408576698