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

Unified Diff: ash/frame/caption_buttons/frame_size_button.cc

Issue 2905893002: chromeos: convert more ash/wm code to aura::Window (Closed)
Patch Set: moar cleanup Created 3 years, 7 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 | ash/mus/move_event_handler.h » ('j') | ash/wm/wm_toplevel_window_event_handler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/frame/caption_buttons/frame_size_button.cc
diff --git a/ash/frame/caption_buttons/frame_size_button.cc b/ash/frame/caption_buttons/frame_size_button.cc
index a98ba8cba1204b353af8c9ab595509fd52fcee0c..5da850187d642b32cbe5b435c49ed177c2c89236 100644
--- a/ash/frame/caption_buttons/frame_size_button.cc
+++ b/ash/frame/caption_buttons/frame_size_button.cc
@@ -213,7 +213,8 @@ void FrameSizeButton::UpdateSnapType(const ui::LocatedEvent& event) {
if (snap_type_ == SNAP_LEFT || snap_type_ == SNAP_RIGHT) {
aura::Window* window = frame_->GetNativeWindow();
if (!phantom_window_controller_.get()) {
- phantom_window_controller_.reset(new PhantomWindowController(window));
+ phantom_window_controller_ =
+ base::MakeUnique<PhantomWindowController>(window);
}
gfx::Rect phantom_bounds_in_screen =
(snap_type_ == SNAP_LEFT)
« no previous file with comments | « no previous file | ash/mus/move_event_handler.h » ('j') | ash/wm/wm_toplevel_window_event_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698