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

Unified Diff: chrome/browser/resources/file_manager/background/js/progress_center.js

Issue 131403003: Files.app: Show drive sync state in the progress center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 11 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: chrome/browser/resources/file_manager/background/js/progress_center.js
diff --git a/chrome/browser/resources/file_manager/background/js/progress_center.js b/chrome/browser/resources/file_manager/background/js/progress_center.js
index a45423b23266f3d72014a8a6823060fbd689f01b..64358b1a506a2c262d139e380f1b9b73072c4813 100644
--- a/chrome/browser/resources/file_manager/background/js/progress_center.js
+++ b/chrome/browser/resources/file_manager/background/js/progress_center.js
@@ -127,7 +127,8 @@ ProgressCenter.Notifications_.prototype.updateItem = function(
message: item.message,
buttons: item.cancelable ? [{title: str('CANCEL_LABEL')}] : undefined,
progress: item.state === ProgressItemState.PROGRESSING ?
- item.progressRateByPercent : undefined
+ item.progressRateInPercent : undefined,
+ priority: (item.state === ProgressItemState.ERROR || !item.quiet) ? 0 : -1
};
if (newlyAdded)
chrome.notifications.create(item.id, params, proceed);

Powered by Google App Engine
This is Rietveld 408576698