| Index: ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js
|
| diff --git a/ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js b/ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js
|
| index 38e3e447e3ee74956e60c222632d6a4f6466e24f..7b4f53a3fb3cd2e39b06f991cc51bd70cdd5e385 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/volume_manager_wrapper.js
|
| @@ -323,6 +323,24 @@ VolumeManagerWrapper.prototype.unmount = function(
|
| };
|
|
|
| /**
|
| + * Requests configuring of the specified volume.
|
| + * @param {!VolumeInfo} volumeInfo Volume to be configured.
|
| + * @return {!Promise} Fulfilled on success, otherwise rejected with an error
|
| + * message.
|
| + */
|
| +VolumeManagerWrapper.prototype.configure = function(volumeInfo) {
|
| + if (this.pendingTasks_) {
|
| + return new Promise(function(fulfill, reject) {
|
| + this.pendingTasks_.push(function() {
|
| + return this.volumeManager_.configure(volumeInfo).then(fulfill, reject);
|
| + }.bind(this));
|
| + }.bind(this));
|
| + }
|
| +
|
| + return this.volumeManager_.configure(volumeInfo);
|
| +};
|
| +
|
| +/**
|
| * Filters volume info by referring nonNativeEnabled.
|
| *
|
| * @param {VolumeInfo} volumeInfo Volume info.
|
|
|