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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/api_implementation.js

Issue 1306773003: Make earcon ids strings instead of numbers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_unused_earcons
Patch Set: Fixed test Created 5 years, 4 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/resources/chromeos/chromevox/chromevox/injected/api_implementation.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/api_implementation.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/api_implementation.js
index ab938b2d43a3bce07937624f4599a315a7156f56..8b8423d76aaaae8437b1da847ee0724d56c9b9da 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/api_implementation.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/api_implementation.js
@@ -198,8 +198,8 @@ cvox.ApiImplementation.stop = function() {
* @param {string} earcon An earcon name.
*/
cvox.ApiImplementation.playEarcon = function(earcon) {
- if (cvox.ChromeVox.isActive) {
- cvox.ChromeVox.earcons.playEarconByName(earcon);
+ if (cvox.ChromeVox.isActive && cvox.Earcon[earcon]) {
+ cvox.ChromeVox.earcons.playEarcon(cvox.Earcon[earcon]);
}
};

Powered by Google App Engine
This is Rietveld 408576698