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

Unified Diff: ash/audio/sounds.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/audio/sounds.cc
diff --git a/ash/audio/sounds.cc b/ash/audio/sounds.cc
index b9110ba28c0ab1653a05038d52816c66b3fca26f..8eb4b38f93230d2098cdfa132f48c70fe06f01ad 100644
--- a/ash/audio/sounds.cc
+++ b/ash/audio/sounds.cc
@@ -6,7 +6,7 @@
#include "ash/common/accessibility_delegate.h"
#include "ash/common/ash_switches.h"
-#include "ash/shell.h"
+#include "ash/common/wm_shell.h"
#include "base/command_line.h"
using media::SoundsManager;
@@ -28,8 +28,7 @@ bool PlaySystemSoundIfSpokenFeedback(SoundsManager::SoundKey key) {
if (cl->HasSwitch(switches::kAshEnableSystemSounds))
return SoundsManager::Get()->Play(key);
- Shell* shell = Shell::GetInstance();
- if (!shell->accessibility_delegate()->IsSpokenFeedbackEnabled())
+ if (!WmShell::Get()->GetAccessibilityDelegate()->IsSpokenFeedbackEnabled())
return false;
return SoundsManager::Get()->Play(key);

Powered by Google App Engine
This is Rietveld 408576698