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

Unified Diff: content/browser/download/download_item_impl.cc

Issue 2720613002: Downloads: Added transient flag to download item and download database (Closed)
Patch Set: Fixed migration unit test Created 3 years, 10 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: content/browser/download/download_item_impl.cc
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc
index df4a7f826c08fc167e60b7dcd187729d8389f041..dd5e4644d4624ea42c2b382965022c464196c6cb 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -146,6 +146,7 @@ DownloadItemImpl::DownloadItemImpl(
DownloadInterruptReason interrupt_reason,
bool opened,
const base::Time& last_access_time,
+ bool visible,
const std::vector<DownloadItem::ReceivedSlice>& received_slices,
const net::NetLogWithSource& net_log)
: guid_(base::ToUpperASCII(guid)),
@@ -168,6 +169,7 @@ DownloadItemImpl::DownloadItemImpl(
delegate_(delegate),
opened_(opened),
last_access_time_(last_access_time),
+ visible_(visible),
current_path_(current_path),
received_bytes_(received_bytes),
all_data_saved_(state == COMPLETE),
@@ -778,6 +780,10 @@ base::Time DownloadItemImpl::GetLastAccessTime() const {
return last_access_time_;
}
+bool DownloadItemImpl::IsVisible() const {
+ return visible_;
vitaliii 2017/03/07 07:58:56 Could you add any comment on when IsVisible is fal
shaktisahu 2017/03/08 06:51:30 Comments are usually found above the method declar
dgn 2017/03/08 13:12:04 All right, but there is no context to why this is
+}
+
BrowserContext* DownloadItemImpl::GetBrowserContext() const {
return delegate_->GetBrowserContext();
}

Powered by Google App Engine
This is Rietveld 408576698