| Index: ui/file_manager/file_manager/background/js/import_history.js
|
| diff --git a/ui/file_manager/file_manager/background/js/import_history.js b/ui/file_manager/file_manager/background/js/import_history.js
|
| index 76bacb2847dcdb29f993b44348f2e4d66f5d730f..c5be4bebca63074e8db10ff46f617542b04de106 100644
|
| --- a/ui/file_manager/file_manager/background/js/import_history.js
|
| +++ b/ui/file_manager/file_manager/background/js/import_history.js
|
| @@ -567,7 +567,7 @@ importer.PersistentImportHistory.prototype.markImportedByUrl =
|
| }
|
|
|
| return Promise.reject(
|
| - 'Unabled to match destination URL to import record > ' + destinationUrl);
|
| + 'Unable to match destination URL to import record > ' + destinationUrl);
|
| };
|
|
|
| /** @override */
|
| @@ -976,8 +976,12 @@ importer.DriveSyncWatcher.prototype.updateSyncStatus_ =
|
| */
|
| importer.DriveSyncWatcher.prototype.onFileTransfersUpdated_ =
|
| function(status) {
|
| + // TODO(smckay): What if the file isn't one we're interested in....?
|
| + // I guess we just let the call to markImportedByUrl fail for now.
|
| if (status.transferState === 'completed') {
|
| - this.history_.markImportedByUrl(status.fileUrl);
|
| + this.history_.markImportedByUrl(status.fileUrl)
|
| + .catch(
|
| + importer.getLogger().catcher('file-transfer-mark-imported-by-url'));
|
| }
|
| };
|
|
|
|
|