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 2efcaccd20d0783c7b0cf086e526532258508b94..0abbda6ec56c2705f5024b561b2243eb1c36af28 100644 |
--- a/chrome/browser/profiles/profile_io_data.cc |
+++ b/chrome/browser/profiles/profile_io_data.cc |
@@ -332,16 +332,21 @@ ProfileIOData* ProfileIOData::FromResourceContext( |
bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { |
DCHECK_EQ(scheme, StringToLowerASCII(scheme)); |
static const char* const kProtocolList[] = { |
+ chrome::kFileScheme, |
+ chrome::kChromeDevToolsScheme, |
extensions::kExtensionScheme, |
+ chrome::kExtensionResourceScheme, |
chrome::kChromeUIScheme, |
- chrome::kChromeDevToolsScheme, |
+ chrome::kDataScheme, |
#if defined(OS_CHROMEOS) |
- chrome::kMetadataScheme, |
chrome::kDriveScheme, |
#endif // defined(OS_CHROMEOS) |
+ chrome::kAboutScheme, |
+#if !defined(DISABLE_FTP_SUPPORT) |
+ chrome::kFtpScheme, |
+#endif // !defined(DISABLE_FTP_SUPPORT) |
chrome::kBlobScheme, |
- chrome::kFileSystemScheme, |
- chrome::kExtensionResourceScheme, |
+ chrome::kFileSystemScheme |
}; |
for (size_t i = 0; i < arraysize(kProtocolList); ++i) { |
if (scheme == kProtocolList[i]) |
@@ -609,8 +614,7 @@ scoped_ptr<net::URLRequestJobFactory> ProfileIOData::SetUpJobFactoryDefaults( |
scoped_ptr<ProtocolHandlerRegistry::JobInterceptorFactory> |
protocol_handler_interceptor, |
net::NetworkDelegate* network_delegate, |
- net::FtpTransactionFactory* ftp_transaction_factory, |
- net::FtpAuthCache* ftp_auth_cache) const { |
+ net::FtpTransactionFactory* ftp_transaction_factory) const { |
// NOTE(willchan): Keep these protocol handlers in sync with |
// ProfileIOData::IsHandledProtocol(). |
bool set_protocol = job_factory->SetProtocolHandler( |
@@ -654,8 +658,7 @@ scoped_ptr<net::URLRequestJobFactory> ProfileIOData::SetUpJobFactoryDefaults( |
DCHECK(ftp_transaction_factory); |
job_factory->SetProtocolHandler( |
chrome::kFtpScheme, |
- new net::FtpProtocolHandler(ftp_transaction_factory, |
- ftp_auth_cache)); |
+ new net::FtpProtocolHandler(ftp_transaction_factory)); |
#endif // !defined(DISABLE_FTP_SUPPORT) |
if (protocol_handler_interceptor) { |