| Index: content/shell/shell_content_browser_client.cc
|
| diff --git a/content/shell/shell_content_browser_client.cc b/content/shell/shell_content_browser_client.cc
|
| index 03bc6954b877405711ff2a74a6dee82ab90968b6..f432030665e2efd9dc8a42caafe215df5eb281e8 100644
|
| --- a/content/shell/shell_content_browser_client.cc
|
| +++ b/content/shell/shell_content_browser_client.cc
|
| @@ -89,22 +89,10 @@ void ShellContentBrowserClient::RenderProcessHostCreated(
|
|
|
| net::URLRequestContextGetter* ShellContentBrowserClient::CreateRequestContext(
|
| BrowserContext* content_browser_context,
|
| - scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| - blob_protocol_handler,
|
| - scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| - file_system_protocol_handler,
|
| - scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| - developer_protocol_handler,
|
| - scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| - chrome_protocol_handler,
|
| - scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| - chrome_devtools_protocol_handler) {
|
| + ProtocolHandlerMap* protocol_handlers) {
|
| ShellBrowserContext* shell_browser_context =
|
| ShellBrowserContextForBrowserContext(content_browser_context);
|
| - return shell_browser_context->CreateRequestContext(
|
| - blob_protocol_handler.Pass(), file_system_protocol_handler.Pass(),
|
| - developer_protocol_handler.Pass(), chrome_protocol_handler.Pass(),
|
| - chrome_devtools_protocol_handler.Pass());
|
| + return shell_browser_context->CreateRequestContext(protocol_handlers);
|
| }
|
|
|
| net::URLRequestContextGetter*
|
| @@ -112,23 +100,11 @@ ShellContentBrowserClient::CreateRequestContextForStoragePartition(
|
| BrowserContext* content_browser_context,
|
| const base::FilePath& partition_path,
|
| bool in_memory,
|
| - scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| - blob_protocol_handler,
|
| - scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| - file_system_protocol_handler,
|
| - scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| - developer_protocol_handler,
|
| - scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| - chrome_protocol_handler,
|
| - scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
|
| - chrome_devtools_protocol_handler) {
|
| + ProtocolHandlerMap* protocol_handlers) {
|
| ShellBrowserContext* shell_browser_context =
|
| ShellBrowserContextForBrowserContext(content_browser_context);
|
| return shell_browser_context->CreateRequestContextForStoragePartition(
|
| - partition_path, in_memory, blob_protocol_handler.Pass(),
|
| - file_system_protocol_handler.Pass(),
|
| - developer_protocol_handler.Pass(), chrome_protocol_handler.Pass(),
|
| - chrome_devtools_protocol_handler.Pass());
|
| + partition_path, in_memory, protocol_handlers);
|
| }
|
|
|
| void ShellContentBrowserClient::AppendExtraCommandLineSwitches(
|
|
|