| Index: ui/file_manager/file_manager/background/js/volume_manager.js
|
| diff --git a/ui/file_manager/file_manager/background/js/volume_manager.js b/ui/file_manager/file_manager/background/js/volume_manager.js
|
| index 5563cf742174c337a906db7eb5064d22099170b4..6869dc2816549df3873c6bf803252ab2f5eb0713 100644
|
| --- a/ui/file_manager/file_manager/background/js/volume_manager.js
|
| +++ b/ui/file_manager/file_manager/background/js/volume_manager.js
|
| @@ -673,23 +673,23 @@ VolumeManager.prototype.initialize_ = function(callback) {
|
| // volumes in the volumeMetadataList are mounted. crbug.com/135477.
|
| this.mountQueue_.run(function(inCallback) {
|
| // Create VolumeInfo for each volume.
|
| - Promise.all([
|
| - volumeMetadataList.map(function(volumeMetadata) {
|
| - console.debug(
|
| - 'Initializing volume: ' + volumeMetadata.volumeId);
|
| - return this.addVolumeMetadata_(volumeMetadata).then(
|
| - function(volumeInfo) {
|
| - console.debug('Initialized volume: ' + volumeInfo.volumeId);
|
| - });
|
| - }.bind(this))
|
| - ]).then(function() {
|
| - console.debug('Initialized all volumes.');
|
| - // Call the callback of the initialize function.
|
| - callback();
|
| - // Call the callback of AsyncQueue. Maybe it invokes callbacks
|
| - // registered by mountCompleted events.
|
| - inCallback();
|
| - });
|
| + Promise.all(
|
| + volumeMetadataList.map(function(volumeMetadata) {
|
| + console.debug(
|
| + 'Initializing volume: ' + volumeMetadata.volumeId);
|
| + return this.addVolumeMetadata_(volumeMetadata).then(
|
| + function(volumeInfo) {
|
| + console.debug('Initialized volume: ' + volumeInfo.volumeId);
|
| + });
|
| + }.bind(this)))
|
| + .then(function() {
|
| + console.debug('Initialized all volumes.');
|
| + // Call the callback of the initialize function.
|
| + callback();
|
| + // Call the callback of AsyncQueue. Maybe it invokes callbacks
|
| + // registered by mountCompleted events.
|
| + inCallback();
|
| + });
|
| }.bind(this));
|
| }.bind(this));
|
| };
|
|
|