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

Unified Diff: chrome/browser/ui/views/download/download_item_view.cc

Issue 11673003: UI changes associated with downloads resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged from DownloadsResumption; includes CanResumeDownload, which was nuked in the original CL. Created 7 years, 12 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 | « chrome/browser/resources/downloads/downloads.js ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/download/download_item_view.cc
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc
index 98d73a89fd4913f0696fb958d7665eb1e1460738..4b8c658e25342d2c667bdd7416466e37dcee69ac 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -798,15 +798,13 @@ void DownloadItemView::OnPaint(gfx::Canvas* canvas) {
} else if (download_->IsComplete() &&
complete_animation_.get() &&
complete_animation_->is_animating()) {
- if (download_->IsInterrupted()) {
- download_util::PaintDownloadInterrupted(canvas, this, 0, 0,
- complete_animation_->GetCurrentValue(),
- download_util::SMALL);
- } else {
download_util::PaintDownloadComplete(canvas, this, 0, 0,
complete_animation_->GetCurrentValue(),
download_util::SMALL);
- }
+ } else if (download_->IsInterrupted()) {
+ download_util::PaintDownloadInterrupted(canvas, this, 0, 0,
+ complete_animation_->GetCurrentValue(),
+ download_util::SMALL);
}
}
« no previous file with comments | « chrome/browser/resources/downloads/downloads.js ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698