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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 14947007: [Downloads] Allow acquiring dangerous download file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename methods for consistency 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: chrome/browser/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index ce0fc2c88156879a243d50cecdb6d4536025e172..963ca4757f72a73481dbff5eb0adc316e7b3f868 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -2656,11 +2656,13 @@ void TestingAutomationProvider::PerformActionOnDownload(
} else if (action == "decline_dangerous_download") {
new AutomationProviderDownloadModelChangedObserver(
this, reply_message, download_manager);
- selected_item->Delete(DownloadItem::DELETE_DUE_TO_USER_DISCARD);
+ selected_item->DiscardDangerousDownload(
+ DownloadItem::DELETE_DUE_TO_USER_DISCARD,
+ DownloadItem::AcquireFileCallback());
} else if (action == "save_dangerous_download") {
selected_item->AddObserver(new AutomationProviderDownloadUpdatedObserver(
this, reply_message, false, browser->profile()->IsOffTheRecord()));
- selected_item->DangerousDownloadValidated();
+ selected_item->ValidateDangerousDownload();
} else if (action == "pause") {
if (!selected_item->IsInProgress() || selected_item->IsPaused()) {
// Action would be a no-op; respond right from here. No-op implies

Powered by Google App Engine
This is Rietveld 408576698