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

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

Issue 2811173002: Setup download internal directory (Closed)
Patch Set: fix browser test Created 3 years, 8 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 | « chrome/browser/download/download_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 29337fe03d99619730a2e98518970355202759b2..17cdad63fa760226777ed78edce9e1e302ba0947 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -227,7 +227,7 @@ DownloadItemImpl::DownloadItemImpl(DownloadItemImplDelegate* delegate,
state_(INITIAL_INTERNAL),
start_time_(info.start_time),
delegate_(delegate),
- is_temporary_(!info.save_info->file_path.empty()),
+ is_temporary_(!info.transient && !info.save_info->file_path.empty()),
transient_(info.transient),
last_modified_time_(info.last_modified),
etag_(info.etag),
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698