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

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: rebase (needs fixing) Created 4 years, 2 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 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
« no previous file with comments | « android_webview/browser/net/aw_url_request_job_factory.cc ('k') | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698