Commit 3f9f7845 authored by Charlie Reis's avatar Charlie Reis Committed by Commit Bot

Use matching RVH/RFH in DownloadUrlParameters for PDF plugin placeholder.

BUG=881497
TEST=See bug for repro steps.

Change-Id: I392788d31e638bc79bb8d35e0451c79af6ca3a26
Reviewed-on: https://chromium-review.googlesource.com/1212145Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Commit-Queue: Charlie Reis <creis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#589559}
parent 92a48b93
...@@ -94,8 +94,8 @@ void PDFPluginPlaceholderObserver::OnOpenPDF( ...@@ -94,8 +94,8 @@ void PDFPluginPlaceholderObserver::OnOpenPDF(
})"); })");
std::unique_ptr<download::DownloadUrlParameters> params = std::unique_ptr<download::DownloadUrlParameters> params =
std::make_unique<download::DownloadUrlParameters>( std::make_unique<download::DownloadUrlParameters>(
url, web_contents()->GetRenderViewHost()->GetProcess()->GetID(), url, render_frame_host->GetRenderViewHost()->GetProcess()->GetID(),
web_contents()->GetRenderViewHost()->GetRoutingID(), render_frame_host->GetRenderViewHost()->GetRoutingID(),
render_frame_host->GetRoutingID(), render_frame_host->GetRoutingID(),
storage_partition->GetURLRequestContext(), traffic_annotation); storage_partition->GetURLRequestContext(), traffic_annotation);
params->set_referrer(referrer.url); params->set_referrer(referrer.url);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment