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

Unified Diff: ash/accelerators/accelerator_controller_unittest.cc

Issue 2154523002: Move AccessibilityDelegate ownership to ash::WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setmediadelegate
Patch Set: fix mash_unittests Created 4 years, 5 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
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/accelerators/spoken_feedback_toggler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller_unittest.cc
diff --git a/ash/accelerators/accelerator_controller_unittest.cc b/ash/accelerators/accelerator_controller_unittest.cc
index 88bd52a54a4553d259c5dd9430c2c9d3d52a8684..452a4f79e2d495da8474072d79856faad6df10df 100644
--- a/ash/accelerators/accelerator_controller_unittest.cc
+++ b/ash/accelerators/accelerator_controller_unittest.cc
@@ -953,7 +953,7 @@ TEST_F(AcceleratorControllerTest, GlobalAccelerators) {
}
TEST_F(AcceleratorControllerTest, GlobalAcceleratorsToggleAppList) {
- AccessibilityDelegate* delegate = WmShell::Get()->GetAccessibilityDelegate();
+ AccessibilityDelegate* delegate = WmShell::Get()->accessibility_delegate();
EXPECT_FALSE(Shell::GetInstance()->GetAppListTargetVisibility());
// The press event should not open the AppList, the release should instead.
@@ -1283,7 +1283,7 @@ TEST_F(AcceleratorControllerTest, DisallowedAtModalWindow) {
#endif
TEST_F(AcceleratorControllerTest, DisallowedWithNoWindow) {
- AccessibilityDelegate* delegate = WmShell::Get()->GetAccessibilityDelegate();
+ AccessibilityDelegate* delegate = WmShell::Get()->accessibility_delegate();
for (size_t i = 0; i < kActionsNeedingWindowLength; ++i) {
delegate->TriggerAccessibilityAlert(A11Y_ALERT_NONE);
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/accelerators/spoken_feedback_toggler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698