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

Issue 11308272: Add IncludeForRequestURL method to CanonicalCookie (Closed)

Created:
8 years ago by markusheintz_
Modified:
8 years ago
CC:
chromium-reviews, erikwright (departed), cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Add IncludeForRequestURL method to CanonicalCookie. Move the code for checking whether to include a cookie or not from the CookieMonster to the new method in CanonicalCookie. This means the new method IncludeForRequestURL returns true when the cookie should be included for the given |url| and cookie options. Change the CookieMonster to use the IncludeForRequestURL method of CanonicalCookie to test whether a cookie should be included or not. TEST=CanonicalCookieTest.IncludeForRequestURL (net_unittests) BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172668

Patch Set 1 #

Total comments: 1

Patch Set 2 : " #

Patch Set 3 : " #

Patch Set 4 : Remove unrelated changes. #

Patch Set 5 : s/IncludeForRequest/IncludeForRequestURL/ #

Total comments: 15

Patch Set 6 : Address comments erikwright. #

Patch Set 7 : " #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -18 lines) Patch
M net/cookies/canonical_cookie.h View 1 2 3 4 1 chunk +13 lines, -1 line 0 comments Download
M net/cookies/canonical_cookie.cc View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download
M net/cookies/canonical_cookie_unittest.cc View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
M net/cookies/cookie_monster.cc View 1 2 3 4 2 chunks +5 lines, -17 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
markusheintz_
Hey Erik here is a rough sketch of who the CanonicalCookie UI could be changed. ...
8 years ago (2012-11-29 15:16:14 UTC) #1
erikwright (departed)
SGTM.
8 years ago (2012-11-30 05:15:31 UTC) #2
markusheintz_
Sorry for the delay on this one. Could you please review the final version of ...
8 years ago (2012-12-05 19:33:01 UTC) #3
erikwright (departed)
https://codereview.chromium.org/11308272/diff/9002/net/cookies/canonical_cookie.cc File net/cookies/canonical_cookie.cc (right): https://codereview.chromium.org/11308272/diff/9002/net/cookies/canonical_cookie.cc#newcode380 net/cookies/canonical_cookie.cc:380: // unsecure scheme. unsecure -> insecure https://codereview.chromium.org/11308272/diff/9002/net/cookies/canonical_cookie.cc#newcode386 net/cookies/canonical_cookie.cc:386: // ...
8 years ago (2012-12-05 19:43:36 UTC) #4
markusheintz_
https://codereview.chromium.org/11308272/diff/9002/net/cookies/canonical_cookie.cc File net/cookies/canonical_cookie.cc (right): https://codereview.chromium.org/11308272/diff/9002/net/cookies/canonical_cookie.cc#newcode380 net/cookies/canonical_cookie.cc:380: // unsecure scheme. On 2012/12/05 19:43:36, erikwright wrote: > ...
8 years ago (2012-12-06 10:10:43 UTC) #5
markusheintz_
ping. I addressed your comments. Could you give this CL another look? On 2012/12/06 10:10:43, ...
8 years ago (2012-12-10 16:19:42 UTC) #6
erikwright (departed)
LGTM. Thank you! https://codereview.chromium.org/11308272/diff/9002/net/cookies/canonical_cookie_unittest.cc File net/cookies/canonical_cookie_unittest.cc (right): https://codereview.chromium.org/11308272/diff/9002/net/cookies/canonical_cookie_unittest.cc#newcode272 net/cookies/canonical_cookie_unittest.cc:272: cookie.reset(CanonicalCookie::Create(url, "A=2; Path=/foo/bar", creation_time, On 2012/12/06 ...
8 years ago (2012-12-11 14:09:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/markusheintz@chromium.org/11308272/19001
8 years ago (2012-12-12 13:25:36 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, cacheinvalidation_unittests, check_deps, content_unittests, crypto_unittests, gpu_unittests, ...
8 years ago (2012-12-12 19:54:17 UTC) #9
M-A Ruel
On 2012/12/12 19:54:17, I haz the power (commit-bot) wrote: > Retried try job too often ...
8 years ago (2012-12-12 20:24:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/markusheintz@chromium.org/11308272/19001
8 years ago (2012-12-12 20:27:09 UTC) #11
commit-bot: I haz the power
8 years ago (2012-12-12 21:56:57 UTC) #12
Message was sent while issue was closed.
Change committed as 172668

Powered by Google App Engine
This is Rietveld 408576698