Clean handlers when custom job factory is used.
This commit is contained in:
parent
2d03c983e4
commit
3f9f778274
1 changed files with 2 additions and 0 deletions
|
@ -156,6 +156,8 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
|
|||
job_factory_factory_.Run(protocol_handlers_, protocol_interceptors_));
|
||||
if (user_job_factory) {
|
||||
storage_->set_job_factory(user_job_factory.release());
|
||||
protocol_handlers_.clear();
|
||||
protocol_interceptors_.weak_clear();
|
||||
return url_request_context_.get();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue