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

Unified Diff: chrome/browser/download/download_item_model.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 | « no previous file | chrome/browser/download/download_item_model_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5e85329b564a7c40c571245ccae84ab6fabaccb4..55c694b93d6630881eaf6751e9ecb08b69cfba76 100644
--- a/chrome/browser/download/download_item_model.cc
+++ b/chrome/browser/download/download_item_model.cc
@@ -255,6 +255,8 @@ string16 DownloadItemModel::GetStatusText() const {
break;
case DownloadItem::INTERRUPTED: {
content::DownloadInterruptReason reason = download_->GetLastReason();
+ // TODO(ahendrickson) -- Add information about whether or not it can be
+ // resumed.
if (reason != content::DOWNLOAD_INTERRUPT_REASON_USER_CANCELED) {
string16 interrupt_reason = InterruptReasonStatusMessage(reason);
status_text = l10n_util::GetStringFUTF16(
@@ -431,7 +433,7 @@ string16 DownloadItemModel::GetInProgressStatusString() const {
}
// A paused download: "100/120 MB, Paused"
- if (download_->IsPaused()) {
+ if (download_->IsPaused() || download_->CanResumeInterrupted()) {
return l10n_util::GetStringFUTF16(
IDS_DOWNLOAD_STATUS_IN_PROGRESS, size_ratio,
l10n_util::GetStringUTF16(IDS_DOWNLOAD_PROGRESS_PAUSED));
« no previous file with comments | « no previous file | chrome/browser/download/download_item_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698