Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Inherits web requests handlers from default parition
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdh committed Jun 18, 2018
1 parent e6e0e4d commit 89027b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions brave/browser/brave_browser_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,11 @@ BraveBrowserContext::CreateRequestContextForStoragePartition(
protocol_handlers,
std::move(request_interceptors));
StoragePartitionDescriptor descriptor(partition_path, in_memory);
// Inherits web requests handlers from default parition
auto default_network_delegate = GetDefaultStoragePartition(this)->
GetURLRequestContext()->GetURLRequestContext()->network_delegate();
url_request_context_getter->GetURLRequestContext()
->set_network_delegate(default_network_delegate);
url_request_context_getter_map_[descriptor] = url_request_context_getter;
if (tor_proxy_.size() && tor_path_.size()) {
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
Expand Down

0 comments on commit 89027b4

Please sign in to comment.