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

Unified Diff: services/ui/ws/server_window.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/scheduled_animation_group.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/server_window.cc
diff --git a/services/ui/ws/server_window.cc b/services/ui/ws/server_window.cc
index 5a6ca3c004b0c13ffdd26a697312e39345b8acab..d03a23bf41813d46f0c5dd773063d3ebf17fbf59 100644
--- a/services/ui/ws/server_window.cc
+++ b/services/ui/ws/server_window.cc
@@ -180,7 +180,7 @@ void ServerWindow::SetClientArea(
}
void ServerWindow::SetHitTestMask(const gfx::Rect& mask) {
- hit_test_mask_.reset(new gfx::Rect(mask));
+ hit_test_mask_ = base::MakeUnique<gfx::Rect>(mask);
}
void ServerWindow::ClearHitTestMask() {
@@ -373,7 +373,7 @@ void ServerWindow::DestroySurfacesScheduledForDestruction() {
ServerWindowSurfaceManager* ServerWindow::GetOrCreateSurfaceManager() {
if (!surface_manager_.get())
- surface_manager_.reset(new ServerWindowSurfaceManager(this));
+ surface_manager_ = base::MakeUnique<ServerWindowSurfaceManager>(this);
return surface_manager_.get();
}
« no previous file with comments | « services/ui/ws/scheduled_animation_group.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698