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

Unified Diff: ios/web/shell/shell_url_request_context_getter.cc

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 | « ios/web/net/request_tracker_impl_unittest.mm ('k') | ios/web/webui/url_data_manager_ios_backend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/shell/shell_url_request_context_getter.cc
diff --git a/ios/web/shell/shell_url_request_context_getter.cc b/ios/web/shell/shell_url_request_context_getter.cc
index 8cffb68fae6fa84c9860aa7764ee0a0b8d4e6c5c..5d8c660357c7d642b569e7dd97d21db546507846 100644
--- a/ios/web/shell/shell_url_request_context_getter.cc
+++ b/ios/web/shell/shell_url_request_context_getter.cc
@@ -141,8 +141,8 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() {
scoped_ptr<net::URLRequestJobFactoryImpl> job_factory(
new net::URLRequestJobFactoryImpl());
- bool set_protocol =
- job_factory->SetProtocolHandler("data", new net::DataProtocolHandler);
+ bool set_protocol = job_factory->SetProtocolHandler(
+ "data", make_scoped_ptr(new net::DataProtocolHandler));
DCHECK(set_protocol);
storage_->set_job_factory(job_factory.release());
« no previous file with comments | « ios/web/net/request_tracker_impl_unittest.mm ('k') | ios/web/webui/url_data_manager_ios_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698