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

Unified Diff: chrome/browser/resources/chromeos/chromevox/host/chrome/earcons_background.js

Issue 574693003: Use an absolute URL when referencing earcon paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/host/chrome/earcons_background.js
diff --git a/chrome/browser/resources/chromeos/chromevox/host/chrome/earcons_background.js b/chrome/browser/resources/chromeos/chromevox/host/chrome/earcons_background.js
index 41bc4c8e8d814f2400039cb51901cb3b15866585..22285e6f9ebf6a74967545d89b96701615648a45 100644
--- a/chrome/browser/resources/chromeos/chromevox/host/chrome/earcons_background.js
+++ b/chrome/browser/resources/chromeos/chromevox/host/chrome/earcons_background.js
@@ -59,8 +59,8 @@ cvox.EarconsBackground.prototype.playEarcon = function(earcon) {
this.currentAudio = this.audioMap[earcon];
if (!this.currentAudio) {
- this.currentAudio = new Audio(this.getBaseUrl() +
- this.getEarconFilename(earcon));
+ this.currentAudio = new Audio(chrome.extension.getURL(this.getBaseUrl() +
+ this.getEarconFilename(earcon)));
this.audioMap[earcon] = this.currentAudio;
}
try {
@@ -78,4 +78,4 @@ cvox.EarconsBackground.prototype.playEarcon = function(earcon) {
* The base URL for loading eracons.
* @type {string}
*/
-cvox.EarconsBackground.BASE_URL = 'earcons/';
+cvox.EarconsBackground.BASE_URL = 'chromevox/background/earcons/';
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698