Pass ProtocolHandlerScopedVector by value.

This commit is contained in:
Cheng Zhao 2014-08-13 16:16:01 +08:00
parent b95b621dfc
commit 604361f93d
4 changed files with 4 additions and 4 deletions

View file

@ -153,7 +153,7 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
// Give user a chance to create their own job factory.
scoped_ptr<net::URLRequestJobFactory> user_job_factory(
job_factory_factory_.Run(protocol_handlers_, protocol_interceptors_));
job_factory_factory_.Run(protocol_handlers_, protocol_interceptors_.Pass()));
if (user_job_factory) {
storage_->set_job_factory(user_job_factory.release());
protocol_handlers_.clear();