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

Unified Diff: ash/shell.cc

Issue 2170753005: Moves AcceleratorController from Shell to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include Created 4 years, 5 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/wm/power_button_controller.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 3e63c8e42588398a432333b8c85605f893da09ed..ffd8e466189c2f53f5eeac15e285fe2b4d23f74f 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -883,8 +883,8 @@ void Shell::Init(const ShellInitParams& init_params) {
display::Screen::GetScreen()->GetPrimaryDisplay());
accelerator_controller_delegate_.reset(new AcceleratorControllerDelegateAura);
- accelerator_controller_.reset(
- new AcceleratorController(accelerator_controller_delegate_.get()));
+ wm_shell_->SetAcceleratorController(base::MakeUnique<AcceleratorController>(
+ accelerator_controller_delegate_.get()));
wm_shell_->CreateMaximizeModeController();
AddPreTargetHandler(window_tree_host_manager_->input_method_event_handler());
@@ -908,7 +908,7 @@ void Shell::Init(const ShellInitParams& init_params) {
accelerator_filter_.reset(new ::wm::AcceleratorFilter(
std::unique_ptr<::wm::AcceleratorDelegate>(new AcceleratorDelegate),
- accelerator_controller_->accelerator_history()));
+ wm_shell_->accelerator_controller()->accelerator_history()));
AddPreTargetHandler(accelerator_filter_.get());
event_transformation_handler_.reset(new EventTransformationHandler);
« no previous file with comments | « ash/shell.h ('k') | ash/wm/power_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698