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

Issue 7864008: Split initial load of cookies by domains (Closed)

Created:
9 years, 3 months ago by guohui
Modified:
9 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Paweł Hajdan Jr., wtc, darin-cc_chromium.org, rkn
Visibility:
Public.

Description

The change list splits loading of cookies from DB by the domain key(eTLD+1). BUG=52909 TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105639

Patch Set 1 : '' #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 30

Patch Set 4 : '' #

Total comments: 14

Patch Set 5 : '' #

Total comments: 39

Patch Set 6 : '' #

Total comments: 27

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 43

Patch Set 9 : '' #

Total comments: 18

Patch Set 10 : '' #

Total comments: 24

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Total comments: 7

Patch Set 14 : '' #

Total comments: 1

Patch Set 15 : '' #

Patch Set 16 : '' #

Patch Set 17 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+758 lines, -145 lines) Patch
M chrome/browser/fast_shutdown_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/net/sqlite_persistent_cookie_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/net/sqlite_persistent_cookie_store.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +220 lines, -56 lines 0 comments Download
A chrome/browser/net/sqlite_persistent_cookie_store_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +114 lines, -0 lines 0 comments Download
M chrome/browser/net/sqlite_persistent_cookie_store_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +102 lines, -12 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M net/base/cookie_monster.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +60 lines, -11 lines 0 comments Download
M net/base/cookie_monster.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 15 chunks +92 lines, -24 lines 0 comments Download
M net/base/cookie_monster_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M net/base/cookie_monster_store_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +43 lines, -7 lines 0 comments Download
M net/base/cookie_monster_store_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +49 lines, -10 lines 0 comments Download
M net/base/cookie_monster_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 15 chunks +67 lines, -21 lines 0 comments Download

Messages

Total messages: 47 (0 generated)
guohui
can you review my code? It has been modified to load cookies by eTLD+1.
9 years, 3 months ago (2011-09-15 18:13:35 UTC) #1
erikwright (departed)
I reserve the right to make more comments, but think this is enough to start ...
9 years, 3 months ago (2011-09-15 20:56:27 UTC) #2
erikwright (departed)
http://codereview.chromium.org/7864008/diff/14008/net/base/cookie_monster.h File net/base/cookie_monster.h (right): http://codereview.chromium.org/7864008/diff/14008/net/base/cookie_monster.h#newcode453 net/base/cookie_monster.h:453: // was invoked and is used for reporting histogram_time_load_. ...
9 years, 3 months ago (2011-09-15 21:01:56 UTC) #3
guohui
Fixed as suggested. Unit tests will be uploaded in the next patch, if this one ...
9 years, 3 months ago (2011-09-16 18:21:09 UTC) #4
erikwright (departed)
A few minor things, besides the tests. http://codereview.chromium.org/7864008/diff/25002/chrome/browser/net/sqlite_persistent_cookie_store.cc File chrome/browser/net/sqlite_persistent_cookie_store.cc (right): http://codereview.chromium.org/7864008/diff/25002/chrome/browser/net/sqlite_persistent_cookie_store.cc#newcode329 chrome/browser/net/sqlite_persistent_cookie_store.cc:329: const size_t ...
9 years, 3 months ago (2011-09-16 18:58:56 UTC) #5
guohui
http://codereview.chromium.org/7864008/diff/25002/net/base/cookie_monster.cc File net/base/cookie_monster.cc (right): http://codereview.chromium.org/7864008/diff/25002/net/base/cookie_monster.cc#newcode1491 net/base/cookie_monster.cc:1491: histogram_time_load_->AddTime(TimeTicks::Now() - beginning_time); Cleared in InvokeQueue, where loaded_ is ...
9 years, 3 months ago (2011-09-16 19:31:50 UTC) #6
erikwright (departed)
A bunch of include and forward declare clean-ups, including many that aren't in your changes ...
9 years, 3 months ago (2011-09-17 02:22:10 UTC) #7
Randy Smith (Not in Mondays)
I'll probably have more detailed comments on a later round. The basic approach does look ...
9 years, 3 months ago (2011-09-19 00:58:57 UTC) #8
grt (UTC plus 2)
drive-by STL nit http://codereview.chromium.org/7864008/diff/26005/chrome/browser/net/sqlite_persistent_cookie_store.cc File chrome/browser/net/sqlite_persistent_cookie_store.cc (right): http://codereview.chromium.org/7864008/diff/26005/chrome/browser/net/sqlite_persistent_cookie_store.cc#newcode324 chrome/browser/net/sqlite_persistent_cookie_store.cc:324: } On 2011/09/19 00:58:57, rdsmith wrote: ...
9 years, 3 months ago (2011-09-19 02:20:40 UTC) #9
Randy Smith (Not in Mondays)
On 2011/09/19 02:20:40, grt wrote: > drive-by STL nit > > http://codereview.chromium.org/7864008/diff/26005/chrome/browser/net/sqlite_persistent_cookie_store.cc > File chrome/browser/net/sqlite_persistent_cookie_store.cc ...
9 years, 3 months ago (2011-09-19 03:08:13 UTC) #10
grt (UTC plus 2)
On 2011/09/19 03:08:13, rdsmith wrote: > On 2011/09/19 02:20:40, grt wrote: > > drive-by STL ...
9 years, 3 months ago (2011-09-19 03:16:46 UTC) #11
guohui
Most fixed as suggested. A separate crbug 97224 is filled for the issue that load ...
9 years, 3 months ago (2011-09-20 18:34:45 UTC) #12
erikwright (departed)
http://codereview.chromium.org/7864008/diff/36002/chrome/browser/net/sqlite_persistent_cookie_store.cc File chrome/browser/net/sqlite_persistent_cookie_store.cc (right): http://codereview.chromium.org/7864008/diff/36002/chrome/browser/net/sqlite_persistent_cookie_store.cc#newcode28 chrome/browser/net/sqlite_persistent_cookie_store.cc:28: nit: Remove this blank line. http://codereview.chromium.org/7864008/diff/36002/chrome/browser/net/sqlite_persistent_cookie_store.cc#newcode384 chrome/browser/net/sqlite_persistent_cookie_store.cc:384: base::AutoLock locked(lock_); ...
9 years, 3 months ago (2011-09-20 19:00:44 UTC) #13
Randy Smith (Not in Mondays)
A couple of high level comments: + I'm a bit worried about the number of ...
9 years, 3 months ago (2011-09-21 20:52:39 UTC) #14
erikwright (departed)
http://codereview.chromium.org/7864008/diff/86003/chrome/browser/net/sqlite_persistent_cookie_store.cc File chrome/browser/net/sqlite_persistent_cookie_store.cc (right): http://codereview.chromium.org/7864008/diff/86003/chrome/browser/net/sqlite_persistent_cookie_store.cc#newcode28 chrome/browser/net/sqlite_persistent_cookie_store.cc:28: remove this blank line http://codereview.chromium.org/7864008/diff/86003/chrome/browser/net/sqlite_persistent_cookie_store.cc#newcode41 chrome/browser/net/sqlite_persistent_cookie_store.cc:41: // repeatedly posts ...
9 years, 2 months ago (2011-10-04 19:55:02 UTC) #15
guohui
http://codereview.chromium.org/7864008/diff/36002/chrome/browser/net/sqlite_persistent_cookie_store.cc File chrome/browser/net/sqlite_persistent_cookie_store.cc (right): http://codereview.chromium.org/7864008/diff/36002/chrome/browser/net/sqlite_persistent_cookie_store.cc#newcode28 chrome/browser/net/sqlite_persistent_cookie_store.cc:28: On 2011/09/20 19:00:44, erikwright wrote: > nit: Remove this ...
9 years, 2 months ago (2011-10-06 15:39:59 UTC) #16
erikwright (departed)
Looks really great! Randy, can you take a look at this now? http://codereview.chromium.org/7864008/diff/97002/chrome/browser/net/sqlite_persistent_cookie_store.cc File chrome/browser/net/sqlite_persistent_cookie_store.cc ...
9 years, 2 months ago (2011-10-06 17:16:46 UTC) #17
guohui
Fixed as suggested in Erik's last comments. http://codereview.chromium.org/7864008/diff/97002/chrome/browser/net/sqlite_persistent_cookie_store.cc File chrome/browser/net/sqlite_persistent_cookie_store.cc (right): http://codereview.chromium.org/7864008/diff/97002/chrome/browser/net/sqlite_persistent_cookie_store.cc#newcode139 chrome/browser/net/sqlite_persistent_cookie_store.cc:139: On 2011/10/06 ...
9 years, 2 months ago (2011-10-06 18:34:54 UTC) #18
Randy Smith (Not in Mondays)
I want to do a thorough review of the tests, but that's going to require ...
9 years, 2 months ago (2011-10-11 15:58:57 UTC) #19
erikwright (departed)
On 2011/10/11 15:58:57, rdsmith wrote: > I want to do a thorough review of the ...
9 years, 2 months ago (2011-10-11 17:24:39 UTC) #20
erikwright (departed)
http://codereview.chromium.org/7864008/diff/103001/net/base/cookie_monster.cc File net/base/cookie_monster.cc (right): http://codereview.chromium.org/7864008/diff/103001/net/base/cookie_monster.cc#newcode1527 net/base/cookie_monster.cc:1527: } On 2011/10/11 15:58:58, rdsmith wrote: > I'm a ...
9 years, 2 months ago (2011-10-11 17:24:46 UTC) #21
Randy Smith (Not in Mondays)
On 2011/10/11 17:24:39, erikwright wrote: > > + It doesn't look like there's testing specifically ...
9 years, 2 months ago (2011-10-11 20:01:21 UTC) #22
Randy Smith (Not in Mondays)
Ok, after trying to wrap my brain around it for a bit, I think I'm ...
9 years, 2 months ago (2011-10-11 20:03:14 UTC) #23
erikwright (departed)
http://codereview.chromium.org/7864008/diff/103001/net/base/cookie_monster_store_test.cc File net/base/cookie_monster_store_test.cc (right): http://codereview.chromium.org/7864008/diff/103001/net/base/cookie_monster_store_test.cc#newcode17 net/base/cookie_monster_store_test.cc:17: // instead we post a LoadCallbackTask. On 2011/10/11 20:03:15, ...
9 years, 2 months ago (2011-10-11 20:11:12 UTC) #24
guohui
http://codereview.chromium.org/7864008/diff/103001/chrome/browser/net/sqlite_persistent_cookie_store.cc File chrome/browser/net/sqlite_persistent_cookie_store.cc (right): http://codereview.chromium.org/7864008/diff/103001/chrome/browser/net/sqlite_persistent_cookie_store.cc#newcode55 chrome/browser/net/sqlite_persistent_cookie_store.cc:55: // whichever occurs first. On 2011/10/11 15:58:58, rdsmith wrote: ...
9 years, 2 months ago (2011-10-11 20:15:36 UTC) #25
erikwright (departed)
On 2011/10/11 20:01:21, rdsmith wrote: > On 2011/10/11 17:24:39, erikwright wrote: > > > + ...
9 years, 2 months ago (2011-10-13 02:07:19 UTC) #26
erikwright (departed)
http://codereview.chromium.org/7864008/diff/103001/net/base/cookie_monster.h File net/base/cookie_monster.h (right): http://codereview.chromium.org/7864008/diff/103001/net/base/cookie_monster.h#newcode39 net/base/cookie_monster.h:39: nit: please add back this blank line.
9 years, 2 months ago (2011-10-13 02:25:27 UTC) #27
guohui
I think TestLoadCookiesForKey in sqlite_persistent_cookie_store_unittest.cc does this. It persists three cookies with distinct eTLD+1 into ...
9 years, 2 months ago (2011-10-13 15:21:38 UTC) #28
guohui
http://codereview.chromium.org/7864008/diff/103001/net/base/cookie_monster.h File net/base/cookie_monster.h (right): http://codereview.chromium.org/7864008/diff/103001/net/base/cookie_monster.h#newcode39 net/base/cookie_monster.h:39: On 2011/10/13 02:25:27, erikwright wrote: > nit: please add ...
9 years, 2 months ago (2011-10-13 15:32:30 UTC) #29
erikwright (departed)
What's missing is the check that multiple cookies from different domains (but same ETLD+1) are ...
9 years, 2 months ago (2011-10-13 15:33:52 UTC) #30
guohui
Modified TestLoadCookiesForKey for checking that multiple cookies from different domains (but same eTLD+1) are all ...
9 years, 2 months ago (2011-10-13 21:17:08 UTC) #31
Randy Smith (Not in Mondays)
On 2011/10/13 21:17:08, guohui wrote: > Modified TestLoadCookiesForKey for checking that multiple cookies from different ...
9 years, 2 months ago (2011-10-13 21:20:30 UTC) #32
Randy Smith (Not in Mondays)
Very nice! LGTM with the one concern below (about using an iterator to a data ...
9 years, 2 months ago (2011-10-13 21:36:28 UTC) #33
erikwright (departed)
I suspect that this could easily be explained by the change in number of queries ...
9 years, 2 months ago (2011-10-14 01:02:19 UTC) #34
erikwright (departed)
http://codereview.chromium.org/7864008/diff/103001/net/base/cookie_monster.cc File net/base/cookie_monster.cc (right): http://codereview.chromium.org/7864008/diff/103001/net/base/cookie_monster.cc#newcode1527 net/base/cookie_monster.cc:1527: } DoCookieTaskForURL first checks keys_loaded_. So as soon as ...
9 years, 2 months ago (2011-10-14 01:15:50 UTC) #35
erikwright (departed)
LGTM. Please add the one TODO and do the queue->deque / swap thing as Randy ...
9 years, 2 months ago (2011-10-14 01:34:28 UTC) #36
erikwright (departed)
Hi guys, Let's do everything possible to get this landed by EOD Friday, to be ...
9 years, 2 months ago (2011-10-14 02:23:31 UTC) #37
Randy Smith (Not in Mondays)
On 2011/10/14 01:02:19, erikwright wrote: > I suspect that this could easily be explained by ...
9 years, 2 months ago (2011-10-14 02:35:05 UTC) #38
Randy Smith (Not in Mondays)
On 2011/10/14 02:23:31, erikwright wrote: > Hi guys, > > Let's do everything possible to ...
9 years, 2 months ago (2011-10-14 02:37:19 UTC) #39
erikwright (departed)
On 2011/10/14 02:35:05, rdsmith wrote: > On 2011/10/14 01:02:19, erikwright wrote: > > I suspect ...
9 years, 2 months ago (2011-10-14 02:46:34 UTC) #40
guohui
The test data has 300 eTLD+1s, which means with splitting cookies by eTLD+1s, 300 DB ...
9 years, 2 months ago (2011-10-14 15:39:00 UTC) #41
erikwright (departed)
LGTM++++! Thanks for all of the hard work and attentive responses, Hui. I'm looking forward ...
9 years, 2 months ago (2011-10-14 15:51:00 UTC) #42
Randy Smith (Not in Mondays)
LGTM. Thanks very much!
9 years, 2 months ago (2011-10-14 16:15:02 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/7864008/140001
9 years, 2 months ago (2011-10-14 18:42:34 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/7864008/140002
9 years, 2 months ago (2011-10-14 19:57:51 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/7864008/140030
9 years, 2 months ago (2011-10-14 23:38:52 UTC) #46
commit-bot: I haz the power
9 years, 2 months ago (2011-10-15 02:42:53 UTC) #47
The commit queue went berserk retrying too often for a
seemingly flaky test. Builder is mac_rel, revision is 105611, job name
was 7864008-140030 (previous was lost) (previous was lost) (previous was lost)
(previous was lost).

Powered by Google App Engine
This is Rietveld 408576698