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

Unified Diff: ios/crnet/crnet_environment.mm

Issue 1295523006: Using scoped_ptr for URLRequestJobFactoryImpl::SetProtocolHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing un-modified file Created 5 years, 4 months 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 | « extensions/shell/browser/shell_content_browser_client.cc ('k') | ios/net/protocol_handler_util_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/crnet/crnet_environment.mm
diff --git a/ios/crnet/crnet_environment.mm b/ios/crnet/crnet_environment.mm
index ffeda97c3f2c496002065ac9a6686bc2f62d5b00..c19a5aba4fa1dd77f59954d0536667598d2770e3 100644
--- a/ios/crnet/crnet_environment.mm
+++ b/ios/crnet/crnet_environment.mm
@@ -456,9 +456,11 @@ void CrNetEnvironment::InitializeOnNetworkThread() {
net::URLRequestJobFactoryImpl* job_factory =
new net::URLRequestJobFactoryImpl;
- job_factory->SetProtocolHandler("data", new net::DataProtocolHandler);
job_factory->SetProtocolHandler(
- "file", new net::FileProtocolHandler(file_thread_->task_runner()));
+ "data", make_scoped_ptr(new net::DataProtocolHandler));
+ job_factory->SetProtocolHandler(
+ "file", make_scoped_ptr(
+ new net::FileProtocolHandler(file_thread_->task_runner())));
main_context_->set_job_factory(job_factory);
main_context_->set_net_log(net_log_.get());
« no previous file with comments | « extensions/shell/browser/shell_content_browser_client.cc ('k') | ios/net/protocol_handler_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698