diff options
author | svaldez <svaldez@chromium.org> | 2015-08-24 14:36:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-24 21:39:35 +0000 |
commit | 5d58c9eb2baa203be1b84ac88cde82c59d72f143 (patch) | |
tree | 3446bf04741d0b6e307fdc0b51593323834e680d /net/proxy | |
parent | cc19cb9a644b1c385b36b108bd9bf5438d8d1f2b (diff) | |
download | chromium_src-5d58c9eb2baa203be1b84ac88cde82c59d72f143.zip chromium_src-5d58c9eb2baa203be1b84ac88cde82c59d72f143.tar.gz chromium_src-5d58c9eb2baa203be1b84ac88cde82c59d72f143.tar.bz2 |
Using scoped_ptr for URLRequestJobFactoryImpl::SetProtocolHandler
Adding scoped_ptr to call in order to take ownership of handler.
BUG=517161
Review URL: https://codereview.chromium.org/1295523006
Cr-Commit-Position: refs/heads/master@{#345185}
Diffstat (limited to 'net/proxy')
-rw-r--r-- | net/proxy/proxy_script_fetcher_impl_unittest.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/proxy/proxy_script_fetcher_impl_unittest.cc b/net/proxy/proxy_script_fetcher_impl_unittest.cc index 651c950..0ffe0c0 100644 --- a/net/proxy/proxy_script_fetcher_impl_unittest.cc +++ b/net/proxy/proxy_script_fetcher_impl_unittest.cc @@ -81,8 +81,9 @@ class RequestContext : public URLRequestContext { network_session.get(), HttpCache::DefaultBackend::InMemory(0))); URLRequestJobFactoryImpl* job_factory = new URLRequestJobFactoryImpl(); #if !defined(DISABLE_FILE_SUPPORT) - job_factory->SetProtocolHandler( - "file", new FileProtocolHandler(base::ThreadTaskRunnerHandle::Get())); + job_factory->SetProtocolHandler("file", + make_scoped_ptr(new FileProtocolHandler( + base::ThreadTaskRunnerHandle::Get()))); #endif storage_.set_job_factory(job_factory); } |