Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: net/proxy/proxy_script_fetcher_impl_unittest.cc

Issue 11418203: Update net/proxy unit test initialization of URLRequestJobFactory object. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_script_fetcher_impl_unittest.cc
diff --git a/net/proxy/proxy_script_fetcher_impl_unittest.cc b/net/proxy/proxy_script_fetcher_impl_unittest.cc
index 7a25c5516b8f4ef30d13f1db28ba22f6e5aa399c..3e7503c6a120d553a8bbadc0ee7e0bfb0132bd3e 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);
- set_job_factory(url_request_job_factory_.get());
- url_request_job_factory_->AddInterceptor(
- new CheckNoRevocationFlagSetInterceptor);
+ scoped_ptr<URLRequestJobFactoryImpl> factory(new URLRequestJobFactoryImpl);
+ set_job_factory(factory.get());
+ factory->AddInterceptor(new CheckNoRevocationFlagSetInterceptor);
erikwright (departed) 2012/11/28 02:07:10 nit: move AddInterceptor and the .Pass() above the
+ url_request_job_factory_ = factory.Pass();
}
virtual ~RequestContext() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698