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

Unified Diff: ash/shell.cc

Issue 2162193003: Separates out accelerators using non-common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@accelerators
Patch Set: sim=20 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/test/ash_test_helper.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 d91499863a6dc20dd7335d2aa174a1e9338c5ce4..3dafb068193cbeb89b1b6ca0897ff953b15f57ba 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -9,6 +9,7 @@
#include <utility>
#include "ash/accelerators/accelerator_controller.h"
+#include "ash/accelerators/accelerator_controller_delegate_aura.h"
#include "ash/accelerators/accelerator_delegate.h"
#include "ash/accelerators/focus_manager_factory.h"
#include "ash/aura/wm_shell_aura.h"
@@ -916,7 +917,9 @@ void Shell::Init(const ShellInitParams& init_params) {
cursor_manager_->SetDisplay(
display::Screen::GetScreen()->GetPrimaryDisplay());
- accelerator_controller_.reset(new AcceleratorController);
+ accelerator_controller_delegate_.reset(new AcceleratorControllerDelegateAura);
+ accelerator_controller_.reset(
+ new AcceleratorController(accelerator_controller_delegate_.get()));
wm_shell_->CreateMaximizeModeController();
AddPreTargetHandler(window_tree_host_manager_->input_method_event_handler());
« no previous file with comments | « ash/shell.h ('k') | ash/test/ash_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698