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

Issue 2882063002: Add a SetCanonicalCookie method for CookieMonster. (Closed)

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

Description

Add a SetCanonicalCookie method for CookieMonster. This includes some refactoring of creation time defaulting, as well as a histogram revision bump because the information about whether a cookie is being set based on a null URL is no longer available at the point of histogram creation. BUG=721395, 723734 R=mmenke@chromium.org Review-Url: https://codereview.chromium.org/2882063002 Cr-Commit-Position: refs/heads/master@{#481227} Committed: https://chromium.googlesource.com/chromium/src/+/a6ce44474ee162592d04a31cf0b243c31a53f57d

Patch Set 1 #

Patch Set 2 : Pushed new interface into CookieStore. #

Patch Set 3 : Fix IO Braino. #

Patch Set 4 : Fixed try job problems. #

Patch Set 5 : Fix try job problems. #

Patch Set 6 : Sync'd to p272216 #

Patch Set 7 : Results of self review. #

Patch Set 8 : Conditionalize http_only test on support. #

Patch Set 9 : Fix try jobs and do some cleanup. #

Total comments: 5

Patch Set 10 : Fix behavior change. #

Patch Set 11 : Rebased on top of dependency CL. #

Patch Set 12 : Adapt test to new secure source definition. #

Patch Set 13 : Fix iOS behavior for secure cookies. #

Total comments: 14

Patch Set 14 : Integrated Matt's comments. #

Patch Set 15 : Fix iOS compile. #

Patch Set 16 : Fix AW cookie store wrapper. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -34 lines) Patch
M android_webview/browser/net/aw_cookie_store_wrapper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M android_webview/browser/net/aw_cookie_store_wrapper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/cookies/cookies_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M headless/public/util/testing/generic_url_request_mocks.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M headless/public/util/testing/generic_url_request_mocks.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -0 lines 0 comments Download
M ios/net/cookies/cookie_store_ios.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M ios/net/cookies/cookie_store_ios.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +35 lines, -2 lines 0 comments Download
M ios/net/cookies/cookie_store_ios_persistent.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M ios/net/cookies/cookie_store_ios_persistent.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +12 lines, -0 lines 0 comments Download
M net/cookies/canonical_cookie.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -2 lines 0 comments Download
M net/cookies/canonical_cookie.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download
M net/cookies/canonical_cookie_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 lines 0 comments Download
M net/cookies/cookie_monster.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +14 lines, -9 lines 0 comments Download
M net/cookies/cookie_monster.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +68 lines, -17 lines 0 comments Download
M net/cookies/cookie_monster_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +15 lines, -1 line 0 comments Download
M net/cookies/cookie_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +12 lines, -0 lines 0 comments Download
M net/cookies/cookie_store_test_helpers.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M net/cookies/cookie_store_test_helpers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -0 lines 0 comments Download
M net/cookies/cookie_store_unittest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +140 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 106 (69 generated)
Randy Smith (Not in Mondays)
Matt, PTAL? I sketched out one issue you may want to think about in https://bugs.chromium.org/p/chromium/issues/detail?id=723734#c4. ...
3 years, 7 months ago (2017-05-22 02:09:56 UTC) #38
mmenke
Not a full review, just a tiny little question. https://codereview.chromium.org/2882063002/diff/160001/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (right): https://codereview.chromium.org/2882063002/diff/160001/net/cookies/cookie_monster.cc#newcode1797 net/cookies/cookie_monster.cc:1797: ...
3 years, 7 months ago (2017-05-22 18:51:27 UTC) #39
mmenke
https://codereview.chromium.org/2882063002/diff/160001/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (right): https://codereview.chromium.org/2882063002/diff/160001/net/cookies/cookie_monster.cc#newcode1797 net/cookies/cookie_monster.cc:1797: !options.exclude_httponly()); On 2017/05/22 18:51:27, mmenke wrote: > This is ...
3 years, 7 months ago (2017-05-22 19:07:05 UTC) #40
Randy Smith (Not in Mondays)
https://codereview.chromium.org/2882063002/diff/160001/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (right): https://codereview.chromium.org/2882063002/diff/160001/net/cookies/cookie_monster.cc#newcode1797 net/cookies/cookie_monster.cc:1797: !options.exclude_httponly()); On 2017/05/22 19:07:04, mmenke wrote: > On 2017/05/22 ...
3 years, 7 months ago (2017-05-22 21:54:03 UTC) #41
Randy Smith (Not in Mondays)
Behavior change believed fixed (easier than I thought) and a test added for the oddity. ...
3 years, 7 months ago (2017-05-22 22:11:35 UTC) #44
mmenke
On 2017/05/22 22:11:35, Randy Smith (Not in Mondays) wrote: > Behavior change believed fixed (easier ...
3 years, 7 months ago (2017-05-22 22:17:03 UTC) #45
Randy Smith (Not in Mondays)
On 2017/05/22 22:17:03, mmenke wrote: > On 2017/05/22 22:11:35, Randy Smith (Not in Mondays) wrote: ...
3 years, 7 months ago (2017-05-22 22:18:54 UTC) #46
mmenke
On 2017/05/22 22:18:54, Randy Smith (Not in Mondays) wrote: > On 2017/05/22 22:17:03, mmenke wrote: ...
3 years, 7 months ago (2017-05-25 15:35:07 UTC) #49
mmenke
On 2017/05/25 15:35:07, mmenke wrote: > On 2017/05/22 22:18:54, Randy Smith (Not in Mondays) wrote: ...
3 years, 7 months ago (2017-05-25 15:37:44 UTC) #50
Randy Smith (Not in Mondays)
https://codereview.chromium.org/2882063002/diff/160001/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (right): https://codereview.chromium.org/2882063002/diff/160001/net/cookies/cookie_monster.cc#newcode1797 net/cookies/cookie_monster.cc:1797: !options.exclude_httponly()); On 2017/05/22 21:54:03, Randy Smith (Not in Mondays) ...
3 years, 7 months ago (2017-05-25 20:45:35 UTC) #51
mmenke
On 2017/05/25 20:45:35, Randy Smith (Not in Mondays) wrote: > https://codereview.chromium.org/2882063002/diff/160001/net/cookies/cookie_monster.cc > File net/cookies/cookie_monster.cc (right): ...
3 years, 7 months ago (2017-05-25 20:51:06 UTC) #52
mmenke
On 2017/05/25 20:51:06, mmenke wrote: > On 2017/05/25 20:45:35, Randy Smith (Not in Mondays) wrote: ...
3 years, 7 months ago (2017-05-25 20:53:05 UTC) #53
Randy Smith (Not in Mondays)
+droger@ for the question below; this CL is not yet ready for external review. https://codereview.chromium.org/2882063002/diff/160001/net/cookies/cookie_monster.cc ...
3 years, 7 months ago (2017-05-25 20:59:26 UTC) #55
Randy Smith (Not in Mondays)
On 2017/05/25 20:51:06, mmenke wrote: > On 2017/05/25 20:45:35, Randy Smith (Not in Mondays) wrote: ...
3 years, 7 months ago (2017-05-25 21:00:46 UTC) #56
Randy Smith (Not in Mondays)
On 2017/05/25 20:51:06, mmenke wrote: > On 2017/05/25 20:45:35, Randy Smith (Not in Mondays) wrote: ...
3 years, 7 months ago (2017-05-25 21:00:49 UTC) #57
mmenke
And, for the record - I verified the Randy is correct, and I *think* that ...
3 years, 7 months ago (2017-05-25 21:14:46 UTC) #58
droger
Reply to comment #55: CC msarda FYI (for the signin interaction) and eugenebut for the ...
3 years, 6 months ago (2017-05-29 14:15:10 UTC) #59
Eugene But (OOO till 7-30)
> - I don't know how WKWebView actually persist cookies. Does it have its own ...
3 years, 6 months ago (2017-05-30 14:32:57 UTC) #60
droger
On 2017/05/30 14:32:57, Eugene But wrote: > > - I don't know how WKWebView actually ...
3 years, 6 months ago (2017-05-30 14:58:11 UTC) #61
Randy Smith (Not in Mondays)
On 2017/05/30 14:58:11, droger wrote: > On 2017/05/30 14:32:57, Eugene But wrote: > > > ...
3 years, 6 months ago (2017-05-31 15:14:58 UTC) #62
droger
On 2017/05/31 15:14:58, Randy Smith (Not in Mondays) wrote: > What kind of timing is ...
3 years, 6 months ago (2017-06-01 15:21:53 UTC) #63
droger
On 2017/06/01 15:21:53, droger wrote: > On 2017/05/31 15:14:58, Randy Smith (Not in Mondays) wrote: ...
3 years, 6 months ago (2017-06-02 13:09:28 UTC) #64
Randy Smith (Not in Mondays)
On 2017/06/02 13:09:28, droger wrote: > On 2017/06/01 15:21:53, droger wrote: > > On 2017/05/31 ...
3 years, 6 months ago (2017-06-09 02:20:04 UTC) #65
droger
On 2017/06/09 02:20:04, Randy Smith (Not in Mondays) wrote: > On 2017/06/02 13:09:28, droger wrote: ...
3 years, 6 months ago (2017-06-09 12:18:29 UTC) #66
Randy Smith (Not in Mondays)
Ok, I think this CL is once again ready for review. mmenke, droger: PTAL? Matt: ...
3 years, 6 months ago (2017-06-15 21:19:22 UTC) #73
droger
ios lgtm
3 years, 6 months ago (2017-06-16 14:27:49 UTC) #76
mmenke
https://codereview.chromium.org/2882063002/diff/240001/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (right): https://codereview.chromium.org/2882063002/diff/240001/net/cookies/cookie_monster.cc#newcode65 net/cookies/cookie_monster.cc:65: #include "base/time/time.h" nit: Not needed, already included in header. ...
3 years, 6 months ago (2017-06-16 15:56:28 UTC) #77
Randy Smith (Not in Mondays)
Comments incorporated; PTAL? https://codereview.chromium.org/2882063002/diff/240001/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (right): https://codereview.chromium.org/2882063002/diff/240001/net/cookies/cookie_monster.cc#newcode65 net/cookies/cookie_monster.cc:65: #include "base/time/time.h" On 2017/06/16 15:56:28, mmenke ...
3 years, 6 months ago (2017-06-16 21:38:00 UTC) #80
mmenke
LGTM!
3 years, 6 months ago (2017-06-16 21:48:26 UTC) #81
Randy Smith (Not in Mondays)
Thanks, Matt & David! Now seeking owners stamps: * android_webview: sgurun@ * chrome/browser/extensions/api/cookies: rdevlin.cronin * ...
3 years, 6 months ago (2017-06-16 22:04:25 UTC) #87
Devlin
chrome/browser/extensions/api/cookies/cookies_unittest.cc lgtm
3 years, 6 months ago (2017-06-16 22:19:31 UTC) #88
alex clarke (OOO till 29th)
headless/ LGTM
3 years, 6 months ago (2017-06-19 15:37:31 UTC) #95
sgurun-gerrit only
On 2017/06/19 15:37:31, alex clarke wrote: > headless/ LGTM aw lgtm
3 years, 6 months ago (2017-06-19 22:41:39 UTC) #96
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/2882063002/300001
3 years, 6 months ago (2017-06-21 14:28:23 UTC) #99
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/254794)
3 years, 6 months ago (2017-06-21 15:51:17 UTC) #101
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/2882063002/300001
3 years, 6 months ago (2017-06-21 15:55:13 UTC) #103
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 17:11:28 UTC) #106
Message was sent while issue was closed.
Committed patchset #16 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/a6ce44474ee162592d04a31cf0b2...

Powered by Google App Engine
This is Rietveld 408576698