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

Unified Diff: chrome/browser/extensions/api/automation/automation_apitest.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
Index: chrome/browser/extensions/api/automation/automation_apitest.cc
diff --git a/chrome/browser/extensions/api/automation/automation_apitest.cc b/chrome/browser/extensions/api/automation/automation_apitest.cc
index 835e49dfe55d5771a04ba9e106b9a6450dc09665..cea120239652bf53d09e97209a2631cb62f82711 100644
--- a/chrome/browser/extensions/api/automation/automation_apitest.cc
+++ b/chrome/browser/extensions/api/automation/automation_apitest.cc
@@ -34,7 +34,7 @@
#if defined(OS_CHROMEOS)
#include "ash/common/accelerators/accelerator_controller.h"
-#include "ash/shell.h"
+#include "ash/common/wm_shell.h"
#include "chrome/browser/ui/aura/accessibility/automation_manager_aura.h"
#endif
@@ -187,7 +187,7 @@ IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopFocusIframe) {
IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopFocusViews) {
AutomationManagerAura::GetInstance()->Enable(browser()->profile());
// Trigger the shelf subtree to be computed.
- ash::Shell::GetInstance()->accelerator_controller()->PerformActionIfEnabled(
+ ash::WmShell::Get()->accelerator_controller()->PerformActionIfEnabled(
ash::FOCUS_SHELF);
ASSERT_TRUE(
@@ -205,7 +205,7 @@ IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopNotRequested) {
IN_PROC_BROWSER_TEST_F(AutomationApiTest, DesktopActions) {
AutomationManagerAura::GetInstance()->Enable(browser()->profile());
// Trigger the shelf subtree to be computed.
- ash::Shell::GetInstance()->accelerator_controller()->PerformActionIfEnabled(
+ ash::WmShell::Get()->accelerator_controller()->PerformActionIfEnabled(
ash::FOCUS_SHELF);
ASSERT_TRUE(RunExtensionSubtest("automation/tests/desktop", "actions.html"))

Powered by Google App Engine
This is Rietveld 408576698