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

Unified Diff: content/browser/loader/resource_dispatcher_host_unittest.cc

Issue 148133007: [Downloads] Always call DM::StartDownload() for explicit downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment updates Created 4 years, 10 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/loader/resource_dispatcher_host_unittest.cc
diff --git a/content/browser/loader/resource_dispatcher_host_unittest.cc b/content/browser/loader/resource_dispatcher_host_unittest.cc
index 9341fcf15b569f0ebd01c9a82af4e0e4c328c04c..1684164f843eba0edc290d85ba417ad93203b9eb 100644
--- a/content/browser/loader/resource_dispatcher_host_unittest.cc
+++ b/content/browser/loader/resource_dispatcher_host_unittest.cc
@@ -1145,8 +1145,6 @@ void ResourceDispatcherHostTest::MakeTestRequestWithPriorityAndRenderFrame(
void ResourceDispatcherHostTest::MakeWebContentsAssociatedDownloadRequest(
int request_id,
const GURL& url) {
- scoped_ptr<DownloadSaveInfo> save_info(new DownloadSaveInfo());
- save_info->prompt_for_save_location = false;
net::URLRequestContext* request_context =
browser_context_->GetResourceContext()->GetRequestContext();
scoped_ptr<net::URLRequest> request(
@@ -1156,9 +1154,7 @@ void ResourceDispatcherHostTest::MakeWebContentsAssociatedDownloadRequest(
browser_context_->GetResourceContext(),
web_contents_->GetRenderProcessHost()->GetID(),
web_contents_->GetRoutingID(),
- web_contents_->GetMainFrame()->GetRoutingID(), false,
- false, std::move(save_info), DownloadItem::kInvalidId,
- ResourceDispatcherHostImpl::DownloadStartedCallback());
+ web_contents_->GetMainFrame()->GetRoutingID(), false);
}
void ResourceDispatcherHostTest::CancelRequest(int request_id) {

Powered by Google App Engine
This is Rietveld 408576698