summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/proxy/proxy_script_fetcher_impl_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/proxy/proxy_script_fetcher_impl_unittest.cc b/net/proxy/proxy_script_fetcher_impl_unittest.cc
index 7a25c55..a061bea 100644
--- a/net/proxy/proxy_script_fetcher_impl_unittest.cc
+++ b/net/proxy/proxy_script_fetcher_impl_unittest.cc
@@ -90,10 +90,10 @@ class RequestContext : public URLRequestContext {
storage_.set_http_transaction_factory(new HttpCache(
network_session,
HttpCache::DefaultBackend::InMemory(0)));
- url_request_job_factory_.reset(new URLRequestJobFactoryImpl);
+ scoped_ptr<URLRequestJobFactoryImpl> factory(new URLRequestJobFactoryImpl);
+ factory->AddInterceptor(new CheckNoRevocationFlagSetInterceptor);
+ url_request_job_factory_ = factory.Pass();
set_job_factory(url_request_job_factory_.get());
- url_request_job_factory_->AddInterceptor(
- new CheckNoRevocationFlagSetInterceptor);
}
virtual ~RequestContext() {