REVIEW: create AtomNetworkDelegate on the IO thread
This commit is contained in:
parent
b2cef31bc0
commit
ebb0e46380
10 changed files with 53 additions and 34 deletions
|
@ -185,12 +185,11 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
|
|||
url_request_context_->set_net_log(net_log_);
|
||||
}
|
||||
|
||||
network_delegate_.reset(delegate_->CreateNetworkDelegate());
|
||||
url_request_context_->set_network_delegate(network_delegate_.get());
|
||||
|
||||
storage_.reset(
|
||||
new net::URLRequestContextStorage(url_request_context_.get()));
|
||||
|
||||
storage_->set_network_delegate(delegate_->CreateNetworkDelegate());
|
||||
|
||||
auto cookie_path = in_memory_ ?
|
||||
base::FilePath() : base_path_.Append(FILE_PATH_LITERAL("Cookies"));
|
||||
auto cookie_config = content::CookieStoreConfig(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue