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 |