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

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

Issue 6905049: Detect removed files and reflect the state in chrome://downloads and the download shelf (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Correct typos Created 9 years, 7 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: chrome/browser/download/download_item.cc
diff --git a/chrome/browser/download/download_item.cc b/chrome/browser/download/download_item.cc
index 52948f8e5c17113f37bb9b1c9d4a0cd8384f7634..e5d6a1218b24a41da6f5b2076c17ca4565d250eb 100644
--- a/chrome/browser/download/download_item.cc
+++ b/chrome/browser/download/download_item.cc
@@ -132,6 +132,7 @@ DownloadItem::DownloadItem(DownloadManager* download_manager,
download_manager_(download_manager),
is_paused_(false),
open_when_complete_(false),
+ is_path_exists_(true),
safety_state_(SAFE),
danger_type_(NOT_DANGEROUS),
auto_opened_(false),
@@ -172,6 +173,7 @@ DownloadItem::DownloadItem(DownloadManager* download_manager,
download_manager_(download_manager),
is_paused_(false),
open_when_complete_(false),
+ is_path_exists_(true),
safety_state_(GetSafetyState(info.is_dangerous_file,
info.is_dangerous_url)),
danger_type_(GetDangerType(info.is_dangerous_file,
@@ -211,6 +213,7 @@ DownloadItem::DownloadItem(DownloadManager* download_manager,
download_manager_(download_manager),
is_paused_(false),
open_when_complete_(false),
+ is_path_exists_(true),
safety_state_(SAFE),
danger_type_(NOT_DANGEROUS),
auto_opened_(false),

Powered by Google App Engine
This is Rietveld 408576698