| 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 74133613ae15a32ce4fc19b17e2a6d5c93014a31..0b51c045592b51c8c248d0a06261567e37aaa8fb 100644
|
| --- a/ui/file_manager/gallery/js/background.js
|
| +++ b/ui/file_manager/gallery/js/background.js
|
| @@ -62,13 +62,13 @@ var backgroundComponentsPromise = BackgroundComponents.load();
|
| */
|
| function resolveEntries(entries) {
|
| return new Promise(function(fulfill, reject) {
|
| - chrome.fileManagerPrivate.resolveIsolatedEntries(entries,
|
| - function(externalEntries) {
|
| - if (!chrome.runtime.lastError)
|
| - fulfill(externalEntries);
|
| - else
|
| - reject(chrome.runtime.lastError);
|
| - });
|
| + chrome.fileManagerPrivate.resolveIsolatedEntries(
|
| + entries, function(externalEntries) {
|
| + if (!chrome.runtime.lastError)
|
| + fulfill(externalEntries);
|
| + else
|
| + reject(chrome.runtime.lastError);
|
| + });
|
| });
|
| }
|
|
|
| @@ -203,6 +203,7 @@ 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) {
|
| + /** @type {string} */
|
| window.testExtensionId = 'ejhcmmdhhpdhhgmifplfmjobgegbibkn';
|
| chrome.runtime.onMessageExternal.addListener(function(message) {
|
| if (message.name !== 'testResourceLoaded')
|
|
|