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

Unified Diff: ui/file_manager/gallery/js/background.js

Issue 485013003: Video Player: Add a test to open a single video file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed the comments Created 6 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: ui/file_manager/gallery/js/background.js
diff --git a/ui/file_manager/gallery/js/background.js b/ui/file_manager/gallery/js/background.js
index 8b2b8c3dc879ae4af732d0e51b2a8f4a8d2f1df8..e76a91b4f21c69b23ce9bd11876636409d80b647 100644
--- a/ui/file_manager/gallery/js/background.js
+++ b/ui/file_manager/gallery/js/background.js
@@ -203,13 +203,14 @@ chrome.app.runtime.onLaunched.addListener(function(launchData) {
// If is is run in the browser test, wait for the test resources are installed
// as a component extension, and then load the test resources.
if (chrome.test) {
+ window.testExtensionId = 'ejhcmmdhhpdhhgmifplfmjobgegbibkn';
chrome.runtime.onMessageExternal.addListener(function(message) {
if (message.name !== 'testResourceLoaded')
return;
var script = document.createElement('script');
script.src =
- 'chrome-extension://ejhcmmdhhpdhhgmifplfmjobgegbibkn' +
- '/gallery/test_loader.js';
+ 'chrome-extension://' + window.testExtensionId +
+ '/common/test_loader.js';
document.documentElement.appendChild(script);
});
}

Powered by Google App Engine
This is Rietveld 408576698