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

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

Issue 2641063002: Fix a problem that user validated dangerous download cannot resume (Closed)
Patch Set: remove dependencies Created 3 years, 11 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 | « no previous file | chrome/browser/download/download_target_determiner_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_target_determiner.cc
diff --git a/chrome/browser/download/download_target_determiner.cc b/chrome/browser/download/download_target_determiner.cc
index 95ea343930bbb2e5c331c55caa29b565349b8ee4..8949f08ddd9b0283f76a7eb7ee46dfc7f3ec423f 100644
--- a/chrome/browser/download/download_target_determiner.cc
+++ b/chrome/browser/download/download_target_determiner.cc
@@ -596,6 +596,10 @@ DownloadTargetDeterminer::Result
DCHECK(!virtual_path_.empty());
next_state_ = STATE_CHECK_VISITED_REFERRER_BEFORE;
+ // If user has validated a dangerous download, don't check.
+ if (danger_type_ == content::DOWNLOAD_DANGER_TYPE_USER_VALIDATED)
+ return CONTINUE;
+
delegate_->CheckDownloadUrl(
download_,
virtual_path_,
« no previous file with comments | « no previous file | chrome/browser/download/download_target_determiner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698