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

Unified Diff: chrome/browser/policy/policy_browsertest.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
Index: chrome/browser/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index b6371128640efb1d606a4aecf65fd19878d570bb..bed222732c7836d43d3658bc394973c06e20ddf6 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -196,10 +196,10 @@
#include "url/origin.h"
#if defined(OS_CHROMEOS)
+#include "ash/aura/wm_shell_aura.h"
#include "ash/common/accelerators/accelerator_controller.h"
#include "ash/common/accelerators/accelerator_table.h"
#include "ash/common/accessibility_types.h"
-#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
#include "chrome/browser/chromeos/accessibility/magnification_manager.h"
@@ -687,17 +687,17 @@ class PolicyTest : public InProcessBrowserTest {
// ScreenshotGrabber doesn't own this observer, so the observer's lifetime
// is tied to the test instead.
chrome_screenshot_grabber->screenshot_grabber()->AddObserver(&observer_);
- ash::Shell::GetInstance()
+ ash::WmShellAura::Get()
->accelerator_controller_delegate()
->SetScreenshotDelegate(std::move(chrome_screenshot_grabber));
SetScreenshotPolicy(enabled);
- ash::WmShell::Get()->accelerator_controller()->PerformActionIfEnabled(
+ ash::Shell::Get()->accelerator_controller()->PerformActionIfEnabled(
ash::TAKE_SCREENSHOT);
content::RunMessageLoop();
static_cast<ChromeScreenshotGrabber*>(
- ash::Shell::GetInstance()
+ ash::WmShellAura::Get()
->accelerator_controller_delegate()
->screenshot_delegate())
->screenshot_grabber()

Powered by Google App Engine
This is Rietveld 408576698