| Index: chrome/browser/chrome_content_browser_client.cc
|
| diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
|
| index 9677f919fc9dce37e08db35a626aebaf185f6ed4..eed92410e2c72503c63592b078f658f884e25bec 100644
|
| --- a/chrome/browser/chrome_content_browser_client.cc
|
| +++ b/chrome/browser/chrome_content_browser_client.cc
|
| @@ -762,25 +762,22 @@ bool ChromeContentBrowserClient::ShouldUseProcessPerSite(
|
| return true;
|
| }
|
|
|
| +std::vector<std::string>
|
| +ChromeContentBrowserClient::GetAdditionalWebUISchemes() {
|
| + std::vector<std::string> additional_schemes;
|
| + additional_schemes.push_back(chrome::kChromeSearchScheme);
|
| + return additional_schemes;
|
| +}
|
| +
|
| net::URLRequestContextGetter*
|
| ChromeContentBrowserClient::CreateRequestContext(
|
| content::BrowserContext* 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) {
|
| + content::ProtocolHandlerMap* protocol_handlers) {
|
| Profile* profile = Profile::FromBrowserContext(browser_context);
|
| - return profile->CreateRequestContext(blob_protocol_handler.Pass(),
|
| - file_system_protocol_handler.Pass(),
|
| - developer_protocol_handler.Pass(),
|
| - chrome_protocol_handler.Pass(),
|
| - chrome_devtools_protocol_handler.Pass());
|
| + return profile->CreateRequestContext(developer_protocol_handler.Pass(),
|
| + protocol_handlers);
|
| }
|
|
|
| net::URLRequestContextGetter*
|
| @@ -789,24 +786,14 @@ ChromeContentBrowserClient::CreateRequestContextForStoragePartition(
|
| 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) {
|
| + content::ProtocolHandlerMap* protocol_handlers) {
|
| Profile* profile = Profile::FromBrowserContext(browser_context);
|
| return profile->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());
|
| + protocol_handlers);
|
| }
|
|
|
| bool ChromeContentBrowserClient::IsHandledURL(const GURL& url) {
|
|
|