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..4576e0ea48d52d8bc724f301a3adfc6f02d94b11 100644 |
--- a/chrome/browser/policy/policy_browsertest.cc |
+++ b/chrome/browser/policy/policy_browsertest.cc |
@@ -12,6 +12,7 @@ |
#include <vector> |
#include "ash/accelerators/accelerator_controller_delegate_aura.h" |
+#include "ash/aura/wm_shell_aura.h" |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
#include "base/callback.h" |
@@ -687,17 +688,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() |