| Index: net/cookies/cookie_monster.cc
|
| diff --git a/net/cookies/cookie_monster.cc b/net/cookies/cookie_monster.cc
|
| index 59f3cf87d37fa2988926bf5f1d041c73aea298d2..3397628003a1795750a0f7db45b4ef399267c568 100644
|
| --- a/net/cookies/cookie_monster.cc
|
| +++ b/net/cookies/cookie_monster.cc
|
| @@ -1133,7 +1133,6 @@ int CookieMonster::DeleteAllForHost(const GURL& url) {
|
| if (!HasCookieableScheme(url))
|
| return 0;
|
|
|
| - const std::string scheme(url.scheme());
|
| const std::string host(url.host());
|
|
|
| // We store host cookies in the store by their canonical host name;
|
| @@ -1148,7 +1147,7 @@ int CookieMonster::DeleteAllForHost(const GURL& url) {
|
| const CanonicalCookie* const cc = curit->second;
|
|
|
| // Delete only on a match as a host cookie.
|
| - if (cc->IsHostCookie() && cc->IsDomainMatch(scheme, host)) {
|
| + if (cc->IsHostCookie() && cc->IsDomainMatch(host)) {
|
| num_deleted++;
|
|
|
| InternalDeleteCookie(curit, true, DELETE_COOKIE_EXPLICIT);
|
| @@ -1603,7 +1602,6 @@ void CookieMonster::FindCookiesForKey(
|
| std::vector<CanonicalCookie*>* cookies) {
|
| lock_.AssertAcquired();
|
|
|
| - const std::string scheme(url.scheme());
|
| const std::string host(url.host());
|
| bool secure = url.SchemeIsSecure();
|
|
|
| @@ -1628,7 +1626,7 @@ void CookieMonster::FindCookiesForKey(
|
| continue;
|
|
|
| // Filter out cookies that don't apply to this domain.
|
| - if (!cc->IsDomainMatch(scheme, host))
|
| + if (!cc->IsDomainMatch(host))
|
| continue;
|
|
|
| if (!cc->IsOnPath(url.path()))
|
|
|