Commit 101c7915 authored by John Abd-El-Malek's avatar John Abd-El-Malek Committed by Commit Bot

Fix crash in debug WebLayer Shell.

Change-Id: I5b17ca633a51dd96d7cc2e73a56a54c6f07a36c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2373951
Auto-Submit: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: Ken Rockot <rockot@google.com>
Reviewed-by: default avatarKen Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/master@{#801376}
parent d7c2b867
......@@ -49,12 +49,14 @@ class DeviceServiceURLLoaderFactory : public network::SharedURLLoaderFactory {
mojo::PendingRemote<network::mojom::URLLoaderClient> client,
const net::MutableNetworkTrafficAnnotationTag& traffic_annotation)
override {
GetContentClient()
->browser()
->GetSystemSharedURLLoaderFactory()
->CreateLoaderAndStart(std::move(receiver), routing_id, request_id,
options, url_request, std::move(client),
traffic_annotation);
auto factory =
GetContentClient()->browser()->GetSystemSharedURLLoaderFactory();
if (!factory)
return;
factory->CreateLoaderAndStart(std::move(receiver), routing_id, request_id,
options, url_request, std::move(client),
traffic_annotation);
}
// SharedURLLoaderFactory implementation:
......
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