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

Unified Diff: content/browser/renderer_host/media/media_stream_dispatcher_host.cc

Issue 2256173002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace a WrapUnique() nested inside a MakeUnique() Created 4 years, 3 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/renderer_host/media/media_stream_dispatcher_host.cc
diff --git a/content/browser/renderer_host/media/media_stream_dispatcher_host.cc b/content/browser/renderer_host/media/media_stream_dispatcher_host.cc
index 5aa187d8cec23ddd50e8b03e2a8080bb03efc4b2..ed0f30059cbc6aa2296a2db91a9c21111154b240 100644
--- a/content/browser/renderer_host/media/media_stream_dispatcher_host.cc
+++ b/content/browser/renderer_host/media/media_stream_dispatcher_host.cc
@@ -291,7 +291,7 @@ MediaStreamDispatcherHost::CreateMediaStreamUIProxy() {
if (use_fake_ui_ ||
base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kUseFakeUIForMediaStream)) {
- return base::WrapUnique(new FakeMediaStreamUIProxy());
+ return base::MakeUnique<FakeMediaStreamUIProxy>();
}
return MediaStreamUIProxy::Create();

Powered by Google App Engine
This is Rietveld 408576698