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 81c06c90a887f5f6e6eaaa83daaf3a14076a428d..d4237ad0261c474a09330659d2086e6ef9ffaa50 100644 |
--- a/chrome/browser/profiles/profile_io_data.cc |
+++ b/chrome/browser/profiles/profile_io_data.cc |
@@ -727,6 +727,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, |
@@ -747,12 +748,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 |