| Index: net/cookies/canonical_cookie.cc
|
| diff --git a/net/cookies/canonical_cookie.cc b/net/cookies/canonical_cookie.cc
|
| index d9579767584b959bf51284260c6a97f34443db9f..eae8298fc78e69eb4225739c5c220222012068f4 100644
|
| --- a/net/cookies/canonical_cookie.cc
|
| +++ b/net/cookies/canonical_cookie.cc
|
| @@ -186,7 +186,7 @@ std::string CanonicalCookie::GetCookieSourceFromURL(const GURL& url) {
|
|
|
| url::Replacements<char> replacements;
|
| replacements.ClearPort();
|
| - if (url.SchemeIsSecure())
|
| + if (url.SchemeIsCryptographic())
|
| replacements.SetScheme("http", url::Component(0, 4));
|
|
|
| return url.GetOrigin().ReplaceComponents(replacements).spec();
|
| @@ -394,7 +394,7 @@ bool CanonicalCookie::IncludeForRequestURL(const GURL& url,
|
| return false;
|
| // Secure cookies should not be included in requests for URLs with an
|
| // insecure scheme.
|
| - if (IsSecure() && !url.SchemeIsSecure())
|
| + if (IsSecure() && !url.SchemeIsCryptographic())
|
| return false;
|
| // Don't include cookies for requests that don't apply to the cookie domain.
|
| if (!IsDomainMatch(url.host()))
|
|
|