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

Unified Diff: android_webview/browser/aw_content_browser_client.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
« no previous file with comments | « no previous file | android_webview/browser/net/aw_url_request_job_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_content_browser_client.cc
diff --git a/android_webview/browser/aw_content_browser_client.cc b/android_webview/browser/aw_content_browser_client.cc
index e56e6f506cb51949b6ce520c55cab352a44eca3f..b35d4f1787c8f698321c001bb952ca5820ff0f5b 100644
--- a/android_webview/browser/aw_content_browser_client.cc
+++ b/android_webview/browser/aw_content_browser_client.cc
@@ -233,12 +233,16 @@ bool AwContentBrowserClient::IsHandledURL(const GURL& url) {
// list of protocols that are handled.
// TODO(mnaganov): Make this automatic.
static const char* const kProtocolList[] = {
- url::kDataScheme,
- url::kBlobScheme,
- url::kFileSystemScheme,
- content::kChromeUIScheme,
- content::kChromeDevToolsScheme,
- url::kContentScheme,
+ url::kDataScheme,
+ url::kBlobScheme,
+ url::kFileSystemScheme,
+ content::kChromeUIScheme,
+ content::kChromeDevToolsScheme,
+ url::kContentScheme,
+ url::kHttpScheme,
+ url::kHttpsScheme,
+ url::kWsScheme,
+ url::kWssScheme,
};
if (scheme == url::kFileScheme) {
// Return false for the "special" file URLs, so they can be loaded
@@ -249,7 +253,7 @@ bool AwContentBrowserClient::IsHandledURL(const GURL& url) {
if (scheme == kProtocolList[i])
return true;
}
- return net::URLRequest::IsHandledProtocol(scheme);
+ return false;
}
std::string AwContentBrowserClient::GetCanonicalEncodingNameByAliasName(
« no previous file with comments | « no previous file | android_webview/browser/net/aw_url_request_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698