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

Unified Diff: chrome/browser/download/download_item_model.cc

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/download/download_item_model.cc
diff --git a/chrome/browser/download/download_item_model.cc b/chrome/browser/download/download_item_model.cc
index 48c75ad95b958c5924e5c0662197d8dd3eb9b5bf..d678107a89c88342b34cde233c44237d3b16fe56 100644
--- a/chrome/browser/download/download_item_model.cc
+++ b/chrome/browser/download/download_item_model.cc
@@ -85,6 +85,11 @@ std::wstring DownloadItemModel::GetStatusText() {
break;
case DownloadItem::REMOVING:
break;
+ case DownloadItem::INTERRUPTED:
+ status_text = l10n_util::GetStringFUTF16(IDS_DOWNLOAD_STATUS_INTERRUPTED,
+ simple_size,
+ simple_total);
+ break;
default:
NOTREACHED();
}
@@ -124,6 +129,12 @@ std::wstring SavePageModel::GetStatusText() {
break;
case DownloadItem::REMOVING:
break;
+ case DownloadItem::INTERRUPTED:
+ status_text = l10n_util::GetStringF(
+ IDS_SAVE_PAGE_STATUS_INTERRUPTED,
+ UTF16ToWide(base::FormatNumber(size)),
+ UTF16ToWide(base::FormatNumber(total_size)));
+ break;
default:
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698