| Index: chrome/browser/profiles/profile_io_data.cc
|
| diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
|
| index ad50def0b5cf1d9756805df9ef71b53ed862c35d..877563f9e31d8591185cd91a0778cb9e13917336 100644
|
| --- a/chrome/browser/profiles/profile_io_data.cc
|
| +++ b/chrome/browser/profiles/profile_io_data.cc
|
| @@ -428,6 +428,7 @@ bool ProfileIOData::IsHandledProtocol(const std::string& scheme) {
|
| chrome::kBlobScheme,
|
| chrome::kFileSystemScheme,
|
| chrome::kExtensionResourceScheme,
|
| + chrome::kChromeSearchScheme,
|
| };
|
| for (size_t i = 0; i < arraysize(kProtocolList); ++i) {
|
| if (scheme == kProtocolList[i])
|
| @@ -472,15 +473,8 @@ ChromeURLRequestContext* ProfileIOData::GetIsolatedAppRequestContext(
|
| scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory>
|
| protocol_handler_interceptor,
|
| 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) const {
|
| + content::ProtocolHandlerMap* protocol_handlers) const {
|
| DCHECK(initialized_);
|
| ChromeURLRequestContext* context = NULL;
|
| if (ContainsKey(app_request_context_map_, partition_descriptor)) {
|
| @@ -488,9 +482,7 @@ ChromeURLRequestContext* ProfileIOData::GetIsolatedAppRequestContext(
|
| } else {
|
| context = AcquireIsolatedAppRequestContext(
|
| main_context, partition_descriptor, protocol_handler_interceptor.Pass(),
|
| - blob_protocol_handler.Pass(), file_system_protocol_handler.Pass(),
|
| - developer_protocol_handler.Pass(), chrome_protocol_handler.Pass(),
|
| - chrome_devtools_protocol_handler.Pass());
|
| + developer_protocol_handler.Pass(), protocol_handlers);
|
| app_request_context_map_[partition_descriptor] = context;
|
| }
|
| DCHECK(context);
|
| @@ -602,15 +594,8 @@ std::string ProfileIOData::GetSSLSessionCacheShard() {
|
|
|
| void ProfileIOData::Init(
|
| 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) const {
|
| + content::ProtocolHandlerMap* protocol_handlers) const {
|
| // The basic logic is implemented here. The specific initialization
|
| // is done in InitializeInternal(), implemented by subtypes. Static helper
|
| // functions have been provided to assist in common operations.
|
| @@ -693,11 +678,8 @@ void ProfileIOData::Init(
|
| #endif
|
|
|
| InitializeInternal(profile_params_.get(),
|
| - blob_protocol_handler.Pass(),
|
| - file_system_protocol_handler.Pass(),
|
| developer_protocol_handler.Pass(),
|
| - chrome_protocol_handler.Pass(),
|
| - chrome_devtools_protocol_handler.Pass());
|
| + protocol_handlers);
|
|
|
| profile_params_.reset();
|
| initialized_ = true;
|
|
|