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

Unified Diff: chrome/browser/ui/ash/volume_controller_chromeos.cc

Issue 2142463002: ash: Remove media dependency from ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops 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
Index: chrome/browser/ui/ash/volume_controller_chromeos.cc
diff --git a/chrome/browser/ui/ash/volume_controller_chromeos.cc b/chrome/browser/ui/ash/volume_controller_chromeos.cc
index 58e4478c169109943e3a902e1dbd517dc5a53316..cdd310bc3f7c1e9a874606faa55a51ce0b4dcfce 100644
--- a/chrome/browser/ui/ash/volume_controller_chromeos.cc
+++ b/chrome/browser/ui/ash/volume_controller_chromeos.cc
@@ -4,10 +4,10 @@
#include "chrome/browser/ui/ash/volume_controller_chromeos.h"
-#include "ash/audio/sounds.h"
#include "ash/common/ash_switches.h"
#include "base/command_line.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
#include "chrome/browser/extensions/api/system_private/system_private_api.h"
#include "chromeos/audio/chromeos_sounds.h"
#include "chromeos/chromeos_switches.h"
@@ -29,8 +29,11 @@ bool VolumeAdjustSoundEnabled() {
}
void PlayVolumeAdjustSound() {
- if (VolumeAdjustSoundEnabled())
- ash::PlaySystemSoundIfSpokenFeedback(chromeos::SOUND_VOLUME_ADJUST);
+ if (VolumeAdjustSoundEnabled()) {
+ chromeos::AccessibilityManager::Get()->PlayEarcon(
+ chromeos::SOUND_VOLUME_ADJUST,
+ chromeos::PlaySoundOption::SPOKEN_FEEDBACK_ENABLED);
+ }
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698