Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Unified Diff: ui/file_manager/file_manager/background/js/drive_sync_handler.js

Issue 942193002: Files.app: fix some closure compilation issues to unblock new compiler roll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/file_manager/background/js/drive_sync_handler.js
diff --git a/ui/file_manager/file_manager/background/js/drive_sync_handler.js b/ui/file_manager/file_manager/background/js/drive_sync_handler.js
index 2c413d8f975c0a586810696004e3ec6ec38136c8..a89a559fc54b80ef5715abd0ace8b4346bf8e3bf 100644
--- a/ui/file_manager/file_manager/background/js/drive_sync_handler.js
+++ b/ui/file_manager/file_manager/background/js/drive_sync_handler.js
@@ -174,8 +174,8 @@ DriveSyncHandler.prototype.updateItem_ = function(status) {
else
this.item_.message = strf('SYNC_FILE_NAME', entry.name);
this.item_.cancelCallback = this.requestCancel_.bind(this, entry);
- this.item_.progressValue = status.processed;
- this.item_.progressMax = status.total;
+ this.item_.progressValue = status.processed || 0;
+ this.item_.progressMax = status.total || 0;
Dan Beam 2015/02/20 23:06:21 matches the defaults set in https://code.google.co
this.progressCenter_.updateItem(this.item_);
callback();
}.bind(this), function(error) {

Powered by Google App Engine
This is Rietveld 408576698