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

Unified Diff: ash/test/ash_test_helper.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: ash/test/ash_test_helper.cc
diff --git a/ash/test/ash_test_helper.cc b/ash/test/ash_test_helper.cc
index f1a1e5cbab5879a22f2323aefeea82b1fcb630db..4dd97545de4bc46de8983d25560f873a5054356d 100644
--- a/ash/test/ash_test_helper.cc
+++ b/ash/test/ash_test_helper.cc
@@ -5,6 +5,7 @@
#include "ash/test/ash_test_helper.h"
#include "ash/accelerators/accelerator_controller_delegate_aura.h"
+#include "ash/aura/wm_shell_aura.h"
#include "ash/common/test/test_session_state_delegate.h"
#include "ash/common/test/test_system_tray_delegate.h"
#include "ash/common/test/wm_shell_test_api.h"
@@ -163,8 +164,10 @@ void AshTestHelper::SetUp(bool start_session) {
// TODO: disabled for mash as AcceleratorControllerDelegateAura isn't
// created in mash http://crbug.com/632111.
test_screenshot_delegate_ = new TestScreenshotDelegate();
- shell->accelerator_controller_delegate()->SetScreenshotDelegate(
- std::unique_ptr<ScreenshotDelegate>(test_screenshot_delegate_));
+ WmShellAura::Get()
+ ->accelerator_controller_delegate()
+ ->SetScreenshotDelegate(
+ std::unique_ptr<ScreenshotDelegate>(test_screenshot_delegate_));
}
}
« ash/common/wm_shell.h ('K') | « ash/shell.cc ('k') | ash/wm/power_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698