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

Unified Diff: components/offline_pages/downloads/download_ui_item.cc

Issue 2489143002: Use new download notification strings (Closed)
Patch Set: merge waiting and pending state Created 4 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
Index: components/offline_pages/downloads/download_ui_item.cc
diff --git a/components/offline_pages/downloads/download_ui_item.cc b/components/offline_pages/downloads/download_ui_item.cc
index 13af20ba27cdbf19a5af7c43d0ae0342c25bbf2b..a6f1af7d65e21fc41a6035d893ce896280ba01fd 100644
--- a/components/offline_pages/downloads/download_ui_item.cc
+++ b/components/offline_pages/downloads/download_ui_item.cc
@@ -19,13 +19,16 @@ DownloadUIItem::DownloadUIItem(const OfflinePageItem& page)
title(page.title),
target_path(page.file_path),
start_time(page.creation_time),
- total_bytes(page.file_size) {}
+ total_bytes(page.file_size),
+ is_offlining(false) {}
DownloadUIItem::DownloadUIItem(const SavePageRequest& request)
: guid(request.client_id().id),
url(request.url()),
start_time(request.creation_time()),
- total_bytes(-1L) {}
+ total_bytes(-1L),
+ is_offlining(request.request_state() ==
+ SavePageRequest::RequestState::OFFLINING) {}
DownloadUIItem::DownloadUIItem(const DownloadUIItem& other)
: guid(other.guid),
@@ -33,7 +36,8 @@ DownloadUIItem::DownloadUIItem(const DownloadUIItem& other)
title(other.title),
target_path(other.target_path),
start_time(other.start_time),
- total_bytes(other.total_bytes) {}
+ total_bytes(other.total_bytes),
+ is_offlining(other.is_offlining) {}
DownloadUIItem::~DownloadUIItem() {
}

Powered by Google App Engine
This is Rietveld 408576698