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

Unified Diff: ash/shell.cc

Issue 2113053003: Moves Shell::maximize_mode_controller() to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: order Created 4 years, 6 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 | « ash/shell.h ('k') | ash/system/chromeos/brightness/tray_brightness.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 17f202f4720975d2d070b11cfa47da0833d6083c..6e2f60e19a20919411b8694e96d91e5ddb57e910 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -675,7 +675,7 @@ Shell::~Shell() {
// Destroy maximize mode controller early on since it has some observers which
// need to be removed.
- maximize_mode_controller_.reset();
+ wm_shell_->DeleteMaximizeModeController();
// Destroy the keyboard before closing the shelf, since it will invoke a shelf
// layout.
@@ -922,7 +922,7 @@ void Shell::Init(const ShellInitParams& init_params) {
display::Screen::GetScreen()->GetPrimaryDisplay());
accelerator_controller_.reset(new AcceleratorController);
- maximize_mode_controller_.reset(new MaximizeModeController());
+ wm_shell_->CreateMaximizeModeController();
AddPreTargetHandler(window_tree_host_manager_->input_method_event_handler());
« no previous file with comments | « ash/shell.h ('k') | ash/system/chromeos/brightness/tray_brightness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698