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

Unified Diff: chrome/browser/ui/ash/ash_init.cc

Issue 2752593008: Move AcceleratorController from WmShell to Shell (Closed)
Patch Set: fix include 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
« no previous file with comments | « chrome/browser/ui/ash/accelerator_controller_browsertest.cc ('k') | chrome/browser/ui/ash/ash_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/ash_init.cc
diff --git a/chrome/browser/ui/ash/ash_init.cc b/chrome/browser/ui/ash/ash_init.cc
index b29a7912b6f9528b29f81ef512d2aaa1cd01ee46..388a113441e27348845896572b842567904be795 100644
--- a/chrome/browser/ui/ash/ash_init.cc
+++ b/chrome/browser/ui/ash/ash_init.cc
@@ -5,9 +5,9 @@
#include "chrome/browser/ui/ash/ash_init.h"
#include "ash/accelerators/accelerator_controller_delegate_aura.h"
+#include "ash/aura/wm_shell_aura.h"
#include "ash/common/accelerators/accelerator_controller.h"
#include "ash/common/accessibility_types.h"
-#include "ash/common/wm_shell.h"
#include "ash/high_contrast/high_contrast_controller.h"
#include "ash/magnifier/magnification_controller.h"
#include "ash/magnifier/partial_magnification_controller.h"
@@ -68,15 +68,17 @@ void OpenAsh(gfx::AcceleratedWidget remote_window) {
shell_init_params.blocking_pool = content::BrowserThread::GetBlockingPool();
ash::Shell* shell = ash::Shell::CreateInstance(shell_init_params);
- shell->accelerator_controller_delegate()->SetScreenshotDelegate(
- std::unique_ptr<ash::ScreenshotDelegate>(new ChromeScreenshotGrabber));
+ ash::WmShellAura::Get()
+ ->accelerator_controller_delegate()
+ ->SetScreenshotDelegate(std::unique_ptr<ash::ScreenshotDelegate>(
+ new ChromeScreenshotGrabber));
// TODO(flackr): Investigate exposing a blocking pool task runner to chromeos.
chromeos::AccelerometerReader::GetInstance()->Initialize(
content::BrowserThread::GetBlockingPool()
->GetSequencedTaskRunnerWithShutdownBehavior(
content::BrowserThread::GetBlockingPool()->GetSequenceToken(),
base::SequencedWorkerPool::SKIP_ON_SHUTDOWN));
- ash::WmShell::Get()->accelerator_controller()->SetImeControlDelegate(
+ shell->accelerator_controller()->SetImeControlDelegate(
std::unique_ptr<ash::ImeControlDelegate>(new ImeController));
shell->high_contrast_controller()->SetEnabled(
chromeos::AccessibilityManager::Get()->IsHighContrastEnabled());
« no previous file with comments | « chrome/browser/ui/ash/accelerator_controller_browsertest.cc ('k') | chrome/browser/ui/ash/ash_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698