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

Unified Diff: services/shell/runner/child/test_native_main.cc

Issue 2259823003: 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: services/shell/runner/child/test_native_main.cc
diff --git a/services/shell/runner/child/test_native_main.cc b/services/shell/runner/child/test_native_main.cc
index d1490a35645a8abc476c455b2a39e4abf77d0799..4de42ff0ef2b9453dbab7857d4908a0109067bcd 100644
--- a/services/shell/runner/child/test_native_main.cc
+++ b/services/shell/runner/child/test_native_main.cc
@@ -58,8 +58,8 @@ int TestNativeMain(shell::Service* service) {
mojo::edk::SetParentPipeHandleFromCommandLine();
base::MessageLoop loop;
- service->set_context(base::WrapUnique(new shell::ServiceContext(
- service, shell::GetServiceRequestFromCommandLine())));
+ service->set_context(base::MakeUnique<shell::ServiceContext>(
+ service, shell::GetServiceRequestFromCommandLine()));
base::RunLoop().Run();
mojo::edk::ShutdownIPCSupport();
« no previous file with comments | « services/shell/public/cpp/lib/service_test.cc ('k') | services/shell/runner/host/in_process_native_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698