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

Unified Diff: chrome/browser/cocoa/download_item_cell.mm

Issue 3127008: Preliminary work on resuming downloads whose connections have expired.
Patch Set: Waiting to send download automation error message until after other downloads are canceled. Created 10 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
Index: chrome/browser/cocoa/download_item_cell.mm
diff --git a/chrome/browser/cocoa/download_item_cell.mm b/chrome/browser/cocoa/download_item_cell.mm
index 935108ffc7ad8a32ad431a19468d02d1b843a64b..5f861b14956dbc9c13f1cad9ee311fa1d56beb21 100644
--- a/chrome/browser/cocoa/download_item_cell.mm
+++ b/chrome/browser/cocoa/download_item_cell.mm
@@ -268,6 +268,9 @@ NSGradient* BackgroundTheme::GetNSGradient(int id) const {
case DownloadItem::CANCELLED:
percentDone_ = -1;
break;
+ case DownloadItem::INTERRUPTED:
+ percentDone_ = -1;
+ break;
case DownloadItem::IN_PROGRESS:
percentDone_ = downloadModel->download()->is_paused() ?
-1 : downloadModel->download()->PercentComplete();

Powered by Google App Engine
This is Rietveld 408576698