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

Unified Diff: ios/web/webui/url_data_manager_ios_backend.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/webui/url_data_manager_ios_backend.h ('k') | mojo/services/network/url_loader_impl_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/url_data_manager_ios_backend.cc
diff --git a/ios/web/webui/url_data_manager_ios_backend.cc b/ios/web/webui/url_data_manager_ios_backend.cc
index 8d1a464074ba787185db8d78371f4416bd152c98..cc3e3e9af8886bfdab7f8a0ee3822425feeab4a3 100644
--- a/ios/web/webui/url_data_manager_ios_backend.cc
+++ b/ios/web/webui/url_data_manager_ios_backend.cc
@@ -415,12 +415,11 @@ URLDataManagerIOSBackend::~URLDataManagerIOSBackend() {
}
// static
-net::URLRequestJobFactory::ProtocolHandler*
-URLDataManagerIOSBackend::CreateProtocolHandler(
- BrowserState* browser_state) {
+scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
+URLDataManagerIOSBackend::CreateProtocolHandler(BrowserState* browser_state) {
DCHECK(browser_state);
- return new ChromeProtocolHandler(browser_state,
- browser_state->IsOffTheRecord());
+ return make_scoped_ptr(new ChromeProtocolHandler(
+ browser_state, browser_state->IsOffTheRecord()));
}
void URLDataManagerIOSBackend::AddDataSource(URLDataSourceIOSImpl* source) {
« no previous file with comments | « ios/web/webui/url_data_manager_ios_backend.h ('k') | mojo/services/network/url_loader_impl_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698