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

Unified Diff: ash/wm/lock_state_controller.cc

Issue 2101263004: mash: Migrate AccessibilityDelegate access to WmShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 6 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/wm/lock_state_controller.cc
diff --git a/ash/wm/lock_state_controller.cc b/ash/wm/lock_state_controller.cc
index 9d538c58d6b1853be63d1e24ef78e8db34d32ec9..08c314c1fac6195ebb16ce67e4027f0964786ee6 100644
--- a/ash/wm/lock_state_controller.cc
+++ b/ash/wm/lock_state_controller.cc
@@ -315,9 +315,8 @@ void LockStateController::StartRealShutdownTimer(bool with_animation_time) {
}
#if defined(OS_CHROMEOS)
- const AccessibilityDelegate* const delegate =
- Shell::GetInstance()->accessibility_delegate();
- base::TimeDelta sound_duration = delegate->PlayShutdownSound();
+ base::TimeDelta sound_duration =
+ WmShell::Get()->GetAccessibilityDelegate()->PlayShutdownSound();
sound_duration =
std::min(sound_duration,
base::TimeDelta::FromMilliseconds(kMaxShutdownSoundDurationMs));

Powered by Google App Engine
This is Rietveld 408576698