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

Unified Diff: services/shell/public/cpp/lib/service_test.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/public/cpp/lib/service_test.cc
diff --git a/services/shell/public/cpp/lib/service_test.cc b/services/shell/public/cpp/lib/service_test.cc
index 447e8dd94280872a494c2aacf2dfed764bcd653f..3a6cf6622e218398399947ab7479e42724cb924d 100644
--- a/services/shell/public/cpp/lib/service_test.cc
+++ b/services/shell/public/cpp/lib/service_test.cc
@@ -61,9 +61,8 @@ void ServiceTest::SetUp() {
base::MessageLoop::current());
initialize_called_ = run_loop.QuitClosure();
- service_->set_context(base::WrapUnique(new ServiceContext(
- service_.get(),
- background_shell_->CreateServiceRequest(test_name_))));
+ service_->set_context(base::MakeUnique<ServiceContext>(
+ service_.get(), background_shell_->CreateServiceRequest(test_name_)));
connector_ = service_->connector();
run_loop.Run();
« no previous file with comments | « services/shell/public/cpp/lib/service_context_ref.cc ('k') | services/shell/runner/child/test_native_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698