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

Unified Diff: chrome/browser/policy/policy_browsertest.cc

Issue 2752593008: Move AcceleratorController from WmShell to Shell (Closed)
Patch Set: cleanup 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..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()

Powered by Google App Engine
This is Rietveld 408576698