Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2210)

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 1868763002: Remove URLRequest::IsHandledProtocol and IsHandledURL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: finish removing URLRequest::IsHandledProtocol() Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698