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

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 content unit tests. Created 8 years, 2 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/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 d50da195df4f81a0172c08a30ced51ca611a93b6..e0f6abb7a8b4ea27afb7cc38566959a6fa500d5a 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -809,15 +809,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()) {
benjhayden 2012/10/15 17:59:37 Woah, nice catch! I presume this is purely a bug f
+ download_util::PaintDownloadInterrupted(canvas, this, 0, 0,
+ complete_animation_->GetCurrentValue(),
+ download_util::SMALL);
}
}

Powered by Google App Engine
This is Rietveld 408576698