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

Unified Diff: chrome/browser/media/cast_remoting_connector.cc

Issue 2842833003: Update SupportsUserData uses with unique_ptr. (Closed)
Patch Set: rebase Created 3 years, 8 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/media/cast_remoting_connector.cc
diff --git a/chrome/browser/media/cast_remoting_connector.cc b/chrome/browser/media/cast_remoting_connector.cc
index 20b6ddb2d1c11ca54f2e9fc0b0b7f143ff2d87a7..6b52d3f22a15f3051a635d7f5b322e686f0aea22 100644
--- a/chrome/browser/media/cast_remoting_connector.cc
+++ b/chrome/browser/media/cast_remoting_connector.cc
@@ -146,7 +146,7 @@ CastRemotingConnector* CastRemotingConnector::Get(
media_router::MediaSourceForTabContentRemoting(
SessionTabHelper::IdForTab(contents))
.id());
- contents->SetUserData(kUserDataKey, connector);
+ contents->SetUserData(kUserDataKey, base::WrapUnique(connector));
}
return connector;
}

Powered by Google App Engine
This is Rietveld 408576698