Clean handlers when custom job factory is used.

This commit is contained in:
Cheng Zhao 2014-08-13 16:05:22 +08:00
parent 2d03c983e4
commit 3f9f778274

View file

@ -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();
}