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

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

Issue 543973003: Update sync status in Desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e5f55f88ab5007c73c190bb2153edccce5f6c209..ada64d4258dedabb8310ab8f5b483d2854b38ff2 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
@@ -123,10 +123,8 @@ DriveSyncHandler.prototype.updateItem_ = function(status) {
else
this.item_.message = strf('SYNC_FILE_NAME', entry.name);
this.item_.cancelCallback = this.requestCancel_.bind(this, entry);
- // status.processed does not show the process of whole of sync.
- this.item_.progressValue = 0;
- // status.total does not show the total of whole of sync.
- this.item_.progressMax = 1;
+ this.item_.progressValue = status.processed;
+ this.item_.progressMax = status.total;
this.progressCenter_.updateItem(this.item_);
callback();
}.bind(this), function(error) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698