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 17654b676a98b2d1edbb93e0448259cb63a893aa..1f85f234f62306f841e33ef98925de2a365a1da3 100644 |
--- a/chrome/browser/automation/testing_automation_provider.cc |
+++ b/chrome/browser/automation/testing_automation_provider.cc |
@@ -2656,11 +2656,11 @@ 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->Remove(); |
} 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 |