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

Unified Diff: services/ui/ws/window_manager_client_unittest.cc

Issue 2365753003: mus ws: Move 'reset(new' to base::MakeUnique. (Closed)
Patch Set: Merge with tot 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 | « services/ui/ws/user_activity_monitor_unittest.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_manager_client_unittest.cc
diff --git a/services/ui/ws/window_manager_client_unittest.cc b/services/ui/ws/window_manager_client_unittest.cc
index 11c25316562a58deaab5d2735d177a91363f905e..3dea21ef193e4741480ad489e340076ef0551d74 100644
--- a/services/ui/ws/window_manager_client_unittest.cc
+++ b/services/ui/ws/window_manager_client_unittest.cc
@@ -268,7 +268,7 @@ class WindowServerTest : public WindowServerTestBase {
// returned.
EmbedResult Embed(Window* window) {
DCHECK(!embed_details_);
- embed_details_.reset(new EmbedDetails);
+ embed_details_ = base::MakeUnique<EmbedDetails>();
window->Embed(ConnectAndGetWindowServerClient(),
base::Bind(&WindowServerTest::EmbedCallbackImpl,
base::Unretained(this)));
@@ -1089,7 +1089,7 @@ class EstablishConnectionViaFactoryDelegate : public TestWindowManagerDelegate {
return false;
created_window_ = nullptr;
- run_loop_.reset(new base::RunLoop);
+ run_loop_ = base::MakeUnique<base::RunLoop>();
run_loop_->Run();
run_loop_.reset();
return created_window_ != nullptr;
« no previous file with comments | « services/ui/ws/user_activity_monitor_unittest.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698