Commit 087b9595 authored by tedv@chromium.org's avatar tedv@chromium.org

Update net/proxy unit test initialization of URLRequestJobFactory object.

The associated CR involves moving mutation interfaces of URLRequestJobFactory to URLRequestJobFactory.  As such, their initializations need to maintain their type as URLRequestJobFactoryImpl before those interfaces can be removed.

See CL https://codereview.chromium.org/11227017 for more information.

BUG=146602


Review URL: https://chromiumcodereview.appspot.com/11418203

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171083 0039d316-1c4b-4281-b951-d872f2087c98
parent 91f9e4d3
...@@ -90,10 +90,10 @@ class RequestContext : public URLRequestContext { ...@@ -90,10 +90,10 @@ class RequestContext : public URLRequestContext {
storage_.set_http_transaction_factory(new HttpCache( storage_.set_http_transaction_factory(new HttpCache(
network_session, network_session,
HttpCache::DefaultBackend::InMemory(0))); 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()); set_job_factory(url_request_job_factory_.get());
url_request_job_factory_->AddInterceptor(
new CheckNoRevocationFlagSetInterceptor);
} }
virtual ~RequestContext() { virtual ~RequestContext() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment