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

Unified Diff: chrome/browser/android/download/download_controller.cc

Issue 2111983002: Record one more reason that download is canceled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/android/download/download_controller.cc
diff --git a/chrome/browser/android/download/download_controller.cc b/chrome/browser/android/download/download_controller.cc
index d7f594a86eb8d50b2bf7f21f32d39efe73cd905b..6b4363a18e0e8deef5319f5a48dad404cd1180aa 100644
--- a/chrome/browser/android/download/download_controller.cc
+++ b/chrome/browser/android/download/download_controller.cc
@@ -424,8 +424,11 @@ void DownloadController::DangerousDownloadValidated(
DownloadItem* item = dlm->GetDownloadByGuid(download_guid);
if (!item)
return;
- if (accept)
+ if (accept) {
item->ValidateDangerousDownload();
- else
+ } else {
+ DownloadController::RecordDownloadCancelReason(
+ DownloadController::CANCEL_REASON_DANGEROUS_INFOBAR_DISMISSED);
item->Remove();
+ }
}

Powered by Google App Engine
This is Rietveld 408576698