Commit 9ff9445e authored by Lukasz Anforowicz's avatar Lukasz Anforowicz Committed by Commit Bot

Use frame/origin-bound URLLoaderFactory in PrepareFrameAndViewForPrint.

This CL modifies PrepareFrameAndViewForPrint::CreateURLLoaderFactory
method so that it delegates creation of URLLoaderFactory to the frame
being printed.

Bug: 891872
Change-Id: I42a87f908e18b751bf8dd1d192b4fa2e34141d09
Reviewed-on: https://chromium-review.googlesource.com/c/1356022Reviewed-by: default avatarWei Li <weili@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612728}
parent 6891b000
......@@ -1007,7 +1007,7 @@ void PrepareFrameAndViewForPrint::BeginNavigation(
std::unique_ptr<blink::WebURLLoaderFactory>
PrepareFrameAndViewForPrint::CreateURLLoaderFactory() {
return blink::Platform::Current()->CreateDefaultURLLoaderFactory();
return frame_.GetFrame()->Client()->CreateURLLoaderFactory();
}
void PrepareFrameAndViewForPrint::CallOnReady() {
......
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