Index: chromecast/browser/url_request_context_factory.cc |
diff --git a/chromecast/browser/url_request_context_factory.cc b/chromecast/browser/url_request_context_factory.cc |
index 693a220f3bc0bace31141e6f44d88ff0d73362f9..a1008713d69cfe746f58d0b395435a1f4276a5a2 100644 |
--- a/chromecast/browser/url_request_context_factory.cc |
+++ b/chromecast/browser/url_request_context_factory.cc |
@@ -238,22 +238,21 @@ void URLRequestContextFactory::InitializeMainContextDependencies( |
it != protocol_handlers->end(); |
++it) { |
set_protocol = job_factory->SetProtocolHandler( |
- it->first, it->second.release()); |
+ it->first, make_scoped_ptr(it->second.release())); |
DCHECK(set_protocol); |
} |
set_protocol = job_factory->SetProtocolHandler( |
- url::kDataScheme, |
- new net::DataProtocolHandler); |
+ url::kDataScheme, make_scoped_ptr(new net::DataProtocolHandler)); |
DCHECK(set_protocol); |
if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableLocalFileAccesses)) { |
set_protocol = job_factory->SetProtocolHandler( |
url::kFileScheme, |
- new net::FileProtocolHandler( |
- content::BrowserThread::GetBlockingPool()-> |
- GetTaskRunnerWithShutdownBehavior( |
- base::SequencedWorkerPool::SKIP_ON_SHUTDOWN))); |
+ make_scoped_ptr(new net::FileProtocolHandler( |
+ content::BrowserThread::GetBlockingPool() |
+ ->GetTaskRunnerWithShutdownBehavior( |
+ base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)))); |
DCHECK(set_protocol); |
} |