summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorsmckay <smckay@chromium.org>2015-04-26 21:49:42 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-27 04:49:50 +0000
commitd4fbd7b5d5e85b36536cd3e5098d3ab24ad729fd (patch)
treece03a2b7e4c25beaa9076975a49b9308ec11d63a /ui
parent54d0ba2e50eb5a92899253cca258b626cd865605 (diff)
downloadchromium_src-d4fbd7b5d5e85b36536cd3e5098d3ab24ad729fd.zip
chromium_src-d4fbd7b5d5e85b36536cd3e5098d3ab24ad729fd.tar.gz
chromium_src-d4fbd7b5d5e85b36536cd3e5098d3ab24ad729fd.tar.bz2
Don't report errors on file transfer events, because most files aren't ones we are interested in.
BUG= Review URL: https://codereview.chromium.org/1096203008 Cr-Commit-Position: refs/heads/master@{#326998}
Diffstat (limited to 'ui')
-rw-r--r--ui/file_manager/file_manager/background/js/import_history.js8
1 files changed, 3 insertions, 5 deletions
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 e69ce262ae..cb22333 100644
--- a/ui/file_manager/file_manager/background/js/import_history.js
+++ b/ui/file_manager/file_manager/background/js/import_history.js
@@ -967,12 +967,10 @@ 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 the synced file it isn't one we copied,
+ // the call to mark by url will just fail...fine by us.
if (status.transferState === 'completed') {
- this.history_.markImportedByUrl(status.fileUrl)
- .catch(
- importer.getLogger().catcher('file-transfer-mark-imported-by-url'));
+ this.history_.markImportedByUrl(status.fileUrl);
}
};