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

Unified Diff: services/ui/ws/display.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 | « no previous file | services/ui/ws/drag_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/display.cc
diff --git a/services/ui/ws/display.cc b/services/ui/ws/display.cc
index a7574023736322cc4615a71f0f7c667c4f0a7313..9d8914ac4ac47d8738fce8eb084890747f0c93be 100644
--- a/services/ui/ws/display.cc
+++ b/services/ui/ws/display.cc
@@ -293,7 +293,7 @@ void Display::CreateRootWindow(const gfx::Size& size) {
ServerWindow::Properties()));
root_->SetBounds(gfx::Rect(size));
root_->SetVisible(true);
- focus_controller_.reset(new FocusController(this, root_.get()));
+ focus_controller_ = base::MakeUnique<FocusController>(this, root_.get());
focus_controller_->AddObserver(this);
InitWindowManagerDisplayRootsIfNecessary();
}
« no previous file with comments | « no previous file | services/ui/ws/drag_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698