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

Unified Diff: content/browser/android/download_controller_android_impl.cc

Issue 14947007: [Downloads] Allow acquiring dangerous download file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename methods and get rid of Delete() Created 7 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: content/browser/android/download_controller_android_impl.cc
diff --git a/content/browser/android/download_controller_android_impl.cc b/content/browser/android/download_controller_android_impl.cc
index f6bbd839a8b5c7f31e7385114172bcbb45d2fe64..2f7c271cbfa8d360b94e3b625fb3b79c9b2e6148 100644
--- a/content/browser/android/download_controller_android_impl.cc
+++ b/content/browser/android/download_controller_android_impl.cc
@@ -364,9 +364,9 @@ void DownloadControllerAndroidImpl::DangerousDownloadValidated(
if (!item)
return;
if (accept)
- item->DangerousDownloadValidated();
+ item->ValidateDangerousDownload();
else
- item->Delete(content::DownloadItem::DELETE_DUE_TO_USER_DISCARD);
+ item->Remove();
}
DownloadControllerAndroidImpl::DownloadInfoAndroid::DownloadInfoAndroid(

Powered by Google App Engine
This is Rietveld 408576698