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

Unified Diff: content/renderer/presentation/presentation_dispatcher.cc

Issue 2253053003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/renderer/presentation/presentation_dispatcher.cc
diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
index 293b030a88d9bfd911a4f29983d88b82e5d1d423..949f03baf034f717371f23ea9fb1800912f52fbb 100644
--- a/content/renderer/presentation/presentation_dispatcher.cc
+++ b/content/renderer/presentation/presentation_dispatcher.cc
@@ -386,8 +386,8 @@ void PresentationDispatcher::OnSessionCreated(
DCHECK(!session_info.is_null());
presentation_service_->ListenForSessionMessages(session_info.Clone());
- callback->onSuccess(base::WrapUnique(
- new PresentationConnectionClient(std::move(session_info))));
+ callback->onSuccess(
+ base::MakeUnique<PresentationConnectionClient>(std::move(session_info)));
}
void PresentationDispatcher::OnConnectionStateChanged(

Powered by Google App Engine
This is Rietveld 408576698