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

Unified Diff: chrome/browser/download/notification/download_item_notification.cc

Issue 2329633003: Implement progress bar spec (determinate and indeterminate). (Closed)
Patch Set: better example code Created 4 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 | ui/app_list/BUILD.gn » ('j') | ui/gfx/animation/linear_animation.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/notification/download_item_notification.cc
diff --git a/chrome/browser/download/notification/download_item_notification.cc b/chrome/browser/download/notification/download_item_notification.cc
index 095d3460c5445c701c74503a9850f67cb3d99ee5..dfaed46448c630dbcdad2e2281808645004a462b 100644
--- a/chrome/browser/download/notification/download_item_notification.cc
+++ b/chrome/browser/download/notification/download_item_notification.cc
@@ -387,6 +387,7 @@ void DownloadItemNotification::UpdateNotificationData(
// Negative progress value shows an indeterminate progress bar.
notification_->set_progress(-1);
}
+
notification_->set_type(message_center::NOTIFICATION_TYPE_PROGRESS);
break;
}
« no previous file with comments | « no previous file | ui/app_list/BUILD.gn » ('j') | ui/gfx/animation/linear_animation.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698