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

Unified Diff: ash/shell.cc

Issue 2752593008: Move AcceleratorController from WmShell to Shell (Closed)
Patch Set: cleanup Created 3 years, 9 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
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 5614eb1c5707cd08e8cc00c5169dbb51255b6dff..94ded5f1f8a09045934923ae9dee8db0786a3f8c 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -8,7 +8,6 @@
#include <string>
#include <utility>
-#include "ash/accelerators/accelerator_controller_delegate_aura.h"
#include "ash/accelerators/accelerator_delegate.h"
#include "ash/accelerators/magnifier_key_scroller.h"
#include "ash/accelerators/spoken_feedback_toggler.h"
@@ -844,13 +843,7 @@ void Shell::Init(const ShellInitParams& init_params) {
display::Screen::GetScreen()->GetPrimaryDisplay());
}
- if (!is_mash) {
- // TODO(sky): move this to WmShell. http://crbug.com/671246.
- accelerator_controller_delegate_.reset(
- new AcceleratorControllerDelegateAura);
- wm_shell_->SetAcceleratorController(base::MakeUnique<AcceleratorController>(
- accelerator_controller_delegate_.get(), nullptr));
- }
+ accelerator_controller_ = wm_shell_->CreateAcceleratorController();
wm_shell_->CreateMaximizeModeController();
if (!is_mash) {
@@ -875,7 +868,7 @@ void Shell::Init(const ShellInitParams& init_params) {
accelerator_filter_.reset(new ::wm::AcceleratorFilter(
std::unique_ptr<::wm::AcceleratorDelegate>(new AcceleratorDelegate),
- wm_shell_->accelerator_controller()->accelerator_history()));
+ accelerator_controller_->accelerator_history()));
AddPreTargetHandler(accelerator_filter_.get());
event_transformation_handler_.reset(new EventTransformationHandler);
« ash/common/wm_shell.h ('K') | « 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