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

Unified Diff: chrome/browser/media/android/router/media_router_android.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky 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
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/android/router/media_router_android.cc
diff --git a/chrome/browser/media/android/router/media_router_android.cc b/chrome/browser/media/android/router/media_router_android.cc
index c824e47522dbf6dc841d93809551c094792856f8..62f8fee2037d75820def1ef5134078e2d9ebfed4 100644
--- a/chrome/browser/media/android/router/media_router_android.cc
+++ b/chrome/browser/media/android/router/media_router_android.cc
@@ -378,7 +378,7 @@ void MediaRouterAndroid::OnRouteCreated(
true); // TODO(avayvod): Populate for_display.
std::unique_ptr<RouteRequestResult> result = RouteRequestResult::FromSuccess(
- base::WrapUnique(new MediaRoute(route)), request->presentation_id);
+ base::MakeUnique<MediaRoute>(route), request->presentation_id);
for (const MediaRouteResponseCallback& callback : request->callbacks)
callback.Run(*result);
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698