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

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

Issue 10831302: Download resumption - Preliminary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed signed/unsigned compare issue. Created 8 years, 1 month 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/base_file.cc » ('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 bd5eefb28e0f19ed29777464a08713fe29376bd4..2cdd706abdfccf52a27104100faab654b1d18503 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -806,15 +806,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/base_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698