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

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: Address comments 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
« no previous file with comments | « no previous file | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698