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

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

Issue 2877008: Rename the download to its final name only after the download is finished (Closed)
Patch Set: rebase Created 10 years, 5 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_item.h ('k') | chrome/browser/download/download_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_item.cc
diff --git a/chrome/browser/download/download_item.cc b/chrome/browser/download/download_item.cc
index d72b6d434f48f27841814d749241e8ec9eb4fabe..d885576513aa6e75494bfc99f2e151a00d56c818 100644
--- a/chrome/browser/download/download_item.cc
+++ b/chrome/browser/download/download_item.cc
@@ -43,7 +43,8 @@ DownloadItem::DownloadItem(const DownloadCreateInfo& info)
is_otr_(false),
is_extension_install_(info.is_extension_install),
name_finalized_(false),
- is_temporary_(false) {
+ is_temporary_(false),
+ need_final_rename_(false) {
if (state_ == IN_PROGRESS)
state_ = CANCELLED;
Init(false /* don't start progress timer */);
@@ -92,7 +93,8 @@ DownloadItem::DownloadItem(int32 download_id,
is_otr_(is_otr),
is_extension_install_(is_extension_install),
name_finalized_(false),
- is_temporary_(is_temporary) {
+ is_temporary_(is_temporary),
+ need_final_rename_(false) {
Init(true /* start progress timer */);
}
« no previous file with comments | « chrome/browser/download/download_item.h ('k') | chrome/browser/download/download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698