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() |