diff options
Diffstat (limited to 'chromium/url/scheme_host_port.cc')
-rw-r--r-- | chromium/url/scheme_host_port.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/chromium/url/scheme_host_port.cc b/chromium/url/scheme_host_port.cc index 30caecc0a2c..c4f0ba5d5cc 100644 --- a/chromium/url/scheme_host_port.cc +++ b/chromium/url/scheme_host_port.cc @@ -23,8 +23,6 @@ namespace url { namespace { -extern const char kQrcScheme[] = "qrc"; - bool IsCanonicalHost(const base::StringPiece& host) { std::string canon_host; @@ -58,12 +56,9 @@ bool IsValidInput(const base::StringPiece& scheme, scheme.data(), Component(0, base::checked_cast<int>(scheme.length())), &scheme_type); - if (!is_standard && scheme != kQrcScheme) + if (!is_standard) return false; - if (scheme == kQrcScheme) - return true; - switch (scheme_type) { case SCHEME_WITH_HOST_AND_PORT: case SCHEME_WITH_HOST_PORT_AND_USER_INFORMATION: |