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

Unified Diff: chrome/service/service_process.cc

Issue 2341693002: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Fix one under-change and one mysterious revert 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: chrome/service/service_process.cc
diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc
index 1f915e3f6ccf4e4357ea657628a150d617bbf1a2..56d8db8e67e80b92ad5e7b6dc85251c53bc5f03a 100644
--- a/chrome/service/service_process.cc
+++ b/chrome/service/service_process.cc
@@ -226,8 +226,9 @@ bool ServiceProcess::Initialize(base::MessageLoopForUI* message_loop,
ipc_server_.reset(new ServiceIPCServer(this /* client */, io_task_runner(),
&shutdown_event_));
- ipc_server_->AddMessageHandler(base::WrapUnique(
- new cloud_print::CloudPrintMessageHandler(ipc_server_.get(), this)));
+ ipc_server_->AddMessageHandler(
+ base::MakeUnique<cloud_print::CloudPrintMessageHandler>(ipc_server_.get(),
+ this));
ipc_server_->Init();
// After the IPC server has started we signal that the service process is

Powered by Google App Engine
This is Rietveld 408576698