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 39ec7628594b68bd18c44e8c8817c982a3eb6202..363196dc9d5e7e1f5bc51f743c67fa828c8ac49f 100644 |
--- a/chrome/browser/profiles/profile_io_data.cc |
+++ b/chrome/browser/profiles/profile_io_data.cc |
@@ -711,6 +711,7 @@ ProfileIOData* ProfileIOData::FromResourceContext( |
// static |
bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { |
DCHECK_EQ(scheme, base::ToLowerASCII(scheme)); |
+ // Keep in sync with ProfileIOData::SetUpJobFactoryDefaults() |
static const char* const kProtocolList[] = { |
url::kFileScheme, |
content::kChromeDevToolsScheme, |
@@ -731,12 +732,16 @@ bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { |
url::kBlobScheme, |
url::kFileSystemScheme, |
chrome::kChromeSearchScheme, |
+ url::kHttpScheme, |
+ url::kHttpsScheme, |
+ url::kWsScheme, |
+ url::kWssScheme, |
}; |
for (size_t i = 0; i < arraysize(kProtocolList); ++i) { |
if (scheme == kProtocolList[i]) |
return true; |
} |
- return net::URLRequest::IsHandledProtocol(scheme); |
+ return false; |
} |
// static |