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

Unified Diff: net/url_request/url_request.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 | « net/url_request/url_request.h ('k') | net/url_request/url_request_job_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 61308faafa8d04818411d808fa30329cb73ec569..139184fe7f9ba76d7b9ea53e7adbbbdc7ec43ec3 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -441,21 +441,6 @@ void URLRequest::SetDefaultCookiePolicyToBlock() {
g_default_can_use_cookies = false;
}
-// static
-bool URLRequest::IsHandledProtocol(const std::string& scheme) {
- return URLRequestJobManager::SupportsScheme(scheme);
-}
-
-// static
-bool URLRequest::IsHandledURL(const GURL& url) {
- if (!url.is_valid()) {
- // We handle error cases.
- return true;
- }
-
- return IsHandledProtocol(url.scheme());
-}
-
void URLRequest::set_first_party_for_cookies(
const GURL& first_party_for_cookies) {
DCHECK(!is_pending_);
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_job_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698