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

Issue 2903213004: Refactor transmission of security of source and http_only mods in cookie_monster.cc. (Closed)

Created:
3 years, 7 months ago by Randy Smith (Not in Mondays)
Modified:
3 years, 6 months ago
Reviewers:
droger, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor transmission of security of source and http_only mods in cookie_monster.cc. Prep CL for https://codereview.chromium.org/2882063002 BUG=721395 R=mmenke@chromium.org Review-Url: https://codereview.chromium.org/2903213004 Cr-Commit-Position: refs/heads/master@{#481002} Committed: https://chromium.googlesource.com/chromium/src/+/2709eee26ac162dc961a19bed779a584bb49da02

Patch Set 1 #

Patch Set 2 : Tweak ordering in header file. #

Total comments: 6

Patch Set 3 : Rebased to latest version of https://codereview.chromium.org/2898953008. #

Patch Set 4 : Incorporated comments and refactored histogram to match old behavior. #

Patch Set 5 : Rebased on newest PS on base CL. #

Patch Set 6 : Revert test reference to histogram back. #

Total comments: 6

Patch Set 7 : Updated documentation comment. #

Total comments: 8

Patch Set 8 : Refactors to remove uneeded argument and do secure source testing lower in the stack. #

Patch Set 9 : Rebased on top of dependent CL. #

Total comments: 4

Patch Set 10 : Fix incorrect arg to DeleteAnyEquivalentCookie. #

Patch Set 11 : Rebase on latest PS of depencency CL. #

Total comments: 2

Patch Set 12 : Rebased to p480954 (and off of now committed dependency CL). #

Patch Set 13 : Add garbage collection to SetAllCookies() path. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -65 lines) Patch
M net/cookies/cookie_monster.h View 1 2 3 4 5 6 7 8 5 chunks +22 lines, -16 lines 0 comments Download
M net/cookies/cookie_monster.cc View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +51 lines, -49 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 63 (38 generated)
Randy Smith (Not in Mondays)
Next CL: just the secure/http_only refactor by itself. PTAL? I'm putting this CLs in a ...
3 years, 7 months ago (2017-05-25 19:48:46 UTC) #5
mmenke
So much easier. https://codereview.chromium.org/2903213004/diff/20001/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (left): https://codereview.chromium.org/2903213004/diff/20001/net/cookies/cookie_monster.cc#oldcode1098 net/cookies/cookie_monster.cc:1098: CookieOptions::SameSiteCookieMode::INCLUDE_STRICT_AND_LAX); So the INCLUDE_STRICT_AND_LAX here didn't ...
3 years, 7 months ago (2017-05-25 20:04:30 UTC) #6
Randy Smith (Not in Mondays)
Matt: This is ready for another review; PTAL? Do note the comment below in response ...
3 years, 6 months ago (2017-06-09 11:19:32 UTC) #18
droger
https://codereview.chromium.org/2903213004/diff/100001/net/cookies/cookie_monster.h File net/cookies/cookie_monster.h (right): https://codereview.chromium.org/2903213004/diff/100001/net/cookies/cookie_monster.h#newcode155 net/cookies/cookie_monster.h:155: // See https://codereview.chromium.org/2882063002/#msg64. If this function is broken in ...
3 years, 6 months ago (2017-06-09 12:22:52 UTC) #19
Randy Smith (Not in Mondays)
https://codereview.chromium.org/2903213004/diff/100001/net/cookies/cookie_monster.h File net/cookies/cookie_monster.h (right): https://codereview.chromium.org/2903213004/diff/100001/net/cookies/cookie_monster.h#newcode155 net/cookies/cookie_monster.h:155: // See https://codereview.chromium.org/2882063002/#msg64. On 2017/06/09 12:22:52, droger wrote: > ...
3 years, 6 months ago (2017-06-09 13:43:35 UTC) #20
droger
https://codereview.chromium.org/2903213004/diff/100001/net/cookies/cookie_monster.h File net/cookies/cookie_monster.h (right): https://codereview.chromium.org/2903213004/diff/100001/net/cookies/cookie_monster.h#newcode155 net/cookies/cookie_monster.h:155: // See https://codereview.chromium.org/2882063002/#msg64. On 2017/06/09 13:43:34, Randy Smith (Not ...
3 years, 6 months ago (2017-06-09 15:17:32 UTC) #21
droger
https://codereview.chromium.org/2903213004/diff/100001/net/cookies/cookie_monster.h File net/cookies/cookie_monster.h (right): https://codereview.chromium.org/2903213004/diff/100001/net/cookies/cookie_monster.h#newcode155 net/cookies/cookie_monster.h:155: // See https://codereview.chromium.org/2882063002/#msg64. On 2017/06/09 13:43:34, Randy Smith (Not ...
3 years, 6 months ago (2017-06-09 15:19:25 UTC) #22
Randy Smith (Not in Mondays)
https://codereview.chromium.org/2903213004/diff/100001/net/cookies/cookie_monster.h File net/cookies/cookie_monster.h (right): https://codereview.chromium.org/2903213004/diff/100001/net/cookies/cookie_monster.h#newcode155 net/cookies/cookie_monster.h:155: // See https://codereview.chromium.org/2882063002/#msg64. On 2017/06/09 15:17:32, droger wrote: > ...
3 years, 6 months ago (2017-06-09 17:41:50 UTC) #23
Randy Smith (Not in Mondays)
Just a quick note to you both that I uploaded a bit of refactoring in ...
3 years, 6 months ago (2017-06-09 18:41:41 UTC) #26
mmenke
So, modulo the new change which I haven't looked at yet, this effectively just moves ...
3 years, 6 months ago (2017-06-09 18:48:52 UTC) #27
Randy Smith (Not in Mondays)
On 2017/06/09 18:48:52, mmenke wrote: > So, modulo the new change which I haven't looked ...
3 years, 6 months ago (2017-06-09 18:59:18 UTC) #28
Randy Smith (Not in Mondays)
Matt: I think we have a mismatch in how we're reading the behavior of the ...
3 years, 6 months ago (2017-06-13 20:53:41 UTC) #33
mmenke
Sorry for the delay in this one - every time I look at it, I ...
3 years, 6 months ago (2017-06-15 21:37:54 UTC) #36
Randy Smith (Not in Mondays)
On 2017/06/15 21:37:54, mmenke wrote: > Sorry for the delay in this one - every ...
3 years, 6 months ago (2017-06-15 21:43:41 UTC) #37
mmenke
On 2017/06/15 21:43:41, Randy Smith (Not in Mondays) wrote: > On 2017/06/15 21:37:54, mmenke wrote: ...
3 years, 6 months ago (2017-06-15 22:06:35 UTC) #38
mmenke
Not sure why this one continues to give me so much trouble - maybe because ...
3 years, 6 months ago (2017-06-16 16:19:48 UTC) #39
Randy Smith (Not in Mondays)
Hmmm. Here's an attempt at a top level summary of the change, if it helps: ...
3 years, 6 months ago (2017-06-16 20:53:59 UTC) #40
Randy Smith (Not in Mondays)
I believe the try bot failures are due to not rebasing on later versions of ...
3 years, 6 months ago (2017-06-16 21:10:02 UTC) #45
mmenke
LGTM https://codereview.chromium.org/2903213004/diff/200001/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (right): https://codereview.chromium.org/2903213004/diff/200001/net/cookies/cookie_monster.cc#newcode1845 net/cookies/cookie_monster.cc:1845: InternalInsertCookie(key, base::MakeUnique<CanonicalCookie>(cookie), true); On 2017/06/16 20:53:58, Randy Smith ...
3 years, 6 months ago (2017-06-19 18:00:19 UTC) #50
Randy Smith (Not in Mondays)
Want another pass, Matt? It's just the addition of the same "GarbageCollect()" line as was ...
3 years, 6 months ago (2017-06-20 21:04:03 UTC) #53
mmenke
On 2017/06/20 21:04:03, Randy Smith (Not in Mondays) wrote: > Want another pass, Matt? It's ...
3 years, 6 months ago (2017-06-20 21:59:20 UTC) #54
Randy Smith (Not in Mondays)
On 2017/06/20 21:59:20, mmenke wrote: > On 2017/06/20 21:04:03, Randy Smith (Not in Mondays) wrote: ...
3 years, 6 months ago (2017-06-20 22:02:28 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2903213004/240001
3 years, 6 months ago (2017-06-20 22:40:14 UTC) #59
commit-bot: I haz the power
Committed patchset #13 (id:240001) as https://chromium.googlesource.com/chromium/src/+/2709eee26ac162dc961a19bed779a584bb49da02
3 years, 6 months ago (2017-06-20 22:43:47 UTC) #62
mmenke
3 years, 6 months ago (2017-06-20 22:49:33 UTC) #63
Message was sent while issue was closed.
On 2017/06/20 22:02:28, Randy Smith (Not in Mondays) wrote:
> On 2017/06/20 21:59:20, mmenke wrote:
> > On 2017/06/20 21:04:03, Randy Smith (Not in Mondays) wrote:
> > > Want another pass, Matt?  It's just the addition of the same
> > "GarbageCollect()"
> > > line as was in SetCanonicalCookie().
> > 
> > I don't think it's needed, but regardless, still LGTM.
> 
> Given the choice, I'd rather not change behavior in a refactor CL.
> 
> Thanks!

Sorry, I meant I don't think another review pass is needed.  I agree we don't
want to change behavior.

Powered by Google App Engine
This is Rietveld 408576698