Commit 9a89052b authored by iseki's avatar iseki Committed by Commit bot

Update sync status in Desktop.

The progress bar of sync status in Desktop Notification is not updated
due to issue 400636.

BUG=408931
TEST=manually
1. Copy local file to Drive
2. Start sync
3. Close Files.app
4. Observe the Notification

Review URL: https://codereview.chromium.org/543973003

Cr-Commit-Position: refs/heads/master@{#293472}
parent 66a8b6a9
...@@ -123,10 +123,8 @@ DriveSyncHandler.prototype.updateItem_ = function(status) { ...@@ -123,10 +123,8 @@ DriveSyncHandler.prototype.updateItem_ = function(status) {
else else
this.item_.message = strf('SYNC_FILE_NAME', entry.name); this.item_.message = strf('SYNC_FILE_NAME', entry.name);
this.item_.cancelCallback = this.requestCancel_.bind(this, entry); this.item_.cancelCallback = this.requestCancel_.bind(this, entry);
// status.processed does not show the process of whole of sync. this.item_.progressValue = status.processed;
this.item_.progressValue = 0; this.item_.progressMax = status.total;
// status.total does not show the total of whole of sync.
this.item_.progressMax = 1;
this.progressCenter_.updateItem(this.item_); this.progressCenter_.updateItem(this.item_);
callback(); callback();
}.bind(this), function(error) { }.bind(this), function(error) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment