diff options
Diffstat (limited to 'chromium/url/gurl.cc')
-rw-r--r-- | chromium/url/gurl.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/chromium/url/gurl.cc b/chromium/url/gurl.cc index f23ed1c29c0..9f4698fb0e4 100644 --- a/chromium/url/gurl.cc +++ b/chromium/url/gurl.cc @@ -288,7 +288,7 @@ GURL GURL::GetOrigin() const { } GURL GURL::GetAsReferrer() const { - if (!SchemeIsValidForReferrer()) + if (!is_valid() || !IsReferrerScheme(spec_.data(), parsed_.scheme)) return GURL(); if (!has_ref() && !has_username() && !has_password()) @@ -354,10 +354,6 @@ bool GURL::SchemeIsHTTPOrHTTPS() const { return SchemeIs(url::kHttpScheme) || SchemeIs(url::kHttpsScheme); } -bool GURL::SchemeIsValidForReferrer() const { - return is_valid_ && IsReferrerScheme(spec_.data(), parsed_.scheme); -} - bool GURL::SchemeIsWSOrWSS() const { return SchemeIs(url::kWsScheme) || SchemeIs(url::kWssScheme); } |