From 5d58c9eb2baa203be1b84ac88cde82c59d72f143 Mon Sep 17 00:00:00 2001 From: svaldez Date: Mon, 24 Aug 2015 14:36:20 -0700 Subject: 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} --- extensions/shell/browser/shell_content_browser_client.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extensions/shell') diff --git a/extensions/shell/browser/shell_content_browser_client.cc b/extensions/shell/browser/shell_content_browser_client.cc index c9314ad..06cf81b 100644 --- a/extensions/shell/browser/shell_content_browser_client.cc +++ b/extensions/shell/browser/shell_content_browser_client.cc @@ -123,7 +123,8 @@ net::URLRequestContextGetter* ShellContentBrowserClient::CreateRequestContext( (*protocol_handlers)[kExtensionScheme] = linked_ptr( CreateExtensionProtocolHandler(false /* is_incognito */, - extension_info_map)); + extension_info_map) + .release()); return browser_main_parts_->browser_context()->CreateRequestContext( protocol_handlers, request_interceptors.Pass(), extension_info_map); } -- cgit v1.1