| 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);
|
| });
|
| }
|
|
|