Commit 6506f071 authored by John Abd-El-Malek's avatar John Abd-El-Malek Committed by Commit Bot

Use 0 to represent process_id of browser process when creating a URLLoaderFactory.

This is per the NetworkContext::CreateURLLoaderFactory contract.

BUG=770854

Change-Id: I4ae9fb610d1860948c84fa9126e98d260afbdfbd
Reviewed-on: https://chromium-review.googlesource.com/745161Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512832}
parent 497723d5
...@@ -91,7 +91,7 @@ content::mojom::URLLoaderFactory* ...@@ -91,7 +91,7 @@ content::mojom::URLLoaderFactory*
SystemNetworkContextManager::GetURLLoaderFactory() { SystemNetworkContextManager::GetURLLoaderFactory() {
if (!url_loader_factory_) { if (!url_loader_factory_) {
GetContext()->CreateURLLoaderFactory( GetContext()->CreateURLLoaderFactory(
mojo::MakeRequest(&url_loader_factory_), base::GetUniqueIdForProcess()); mojo::MakeRequest(&url_loader_factory_), 0);
} }
return url_loader_factory_.get(); return url_loader_factory_.get();
} }
......
...@@ -607,8 +607,7 @@ StoragePartitionImpl::GetURLLoaderFactoryForBrowserProcess() { ...@@ -607,8 +607,7 @@ StoragePartitionImpl::GetURLLoaderFactoryForBrowserProcess() {
// Create the URLLoaderFactory as needed. // Create the URLLoaderFactory as needed.
if (!url_loader_factory_for_browser_process_) { if (!url_loader_factory_for_browser_process_) {
GetNetworkContext()->CreateURLLoaderFactory( GetNetworkContext()->CreateURLLoaderFactory(
mojo::MakeRequest(&url_loader_factory_for_browser_process_), mojo::MakeRequest(&url_loader_factory_for_browser_process_), 0);
base::GetUniqueIdForProcess());
} }
return url_loader_factory_for_browser_process_.get(); return url_loader_factory_for_browser_process_.get();
} }
......
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