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

Issue 1016643004: Moves SQLitePersistentCookieStore to net/extras/sqlite. (Closed)

Created:
5 years, 9 months ago by rohitrao (ping after 24h)
Modified:
5 years, 7 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, stuartmorgan
Base URL:
https://chromium.googlesource.com/chromium/src.git@cookies
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Moves SQLitePersistentCookieStore to net/extras/sqlite. The application of special storage policy is split out into a new class, QuotaPolicyCookieStore, in content/browser/net. BUG=467596 TEST=No visible impact. Committed: https://crrev.com/57adf29fb4e46a49272610140b097f85e1e805f5 Cr-Commit-Position: refs/heads/master@{#329950}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Unittests. #

Total comments: 1

Patch Set 5 : GN #

Patch Set 6 : browser_tests #

Patch Set 7 : GN2 #

Patch Set 8 : Remove NET_EXPORT. #

Total comments: 16

Patch Set 9 : Review. #

Patch Set 10 : Rebased. #

Total comments: 5

Patch Set 11 : Review. #

Patch Set 12 : Rebased. #

Patch Set 13 : #

Patch Set 14 : Rebased. #

Patch Set 15 : Rebase with latest cookiedb changes. #

Patch Set 16 : One space after a period. #

Patch Set 17 : Fixes. #

Patch Set 18 : Ensure unique timestamps in tests. #

Patch Set 19 : Better timestamp fix. #

Total comments: 59

Patch Set 20 : Review. #

Patch Set 21 : Maybe fix bots. #

Total comments: 43

Patch Set 22 : Use WeakPtr. #

Total comments: 7

Patch Set 23 : Review. #

Patch Set 24 : git cl format net #

Total comments: 4

Patch Set 25 : Review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+875 lines, -2841 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
A content/browser/net/quota_policy_cookie_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +82 lines, -0 lines 0 comments Download
A content/browser/net/quota_policy_cookie_store.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +188 lines, -0 lines 0 comments Download
A content/browser/net/quota_policy_cookie_store_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +244 lines, -0 lines 0 comments Download
D content/browser/net/sqlite_persistent_cookie_store.h View 1 chunk +0 lines, -79 lines 0 comments Download
D content/browser/net/sqlite_persistent_cookie_store.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +0 lines, -1465 lines 0 comments Download
D content/browser/net/sqlite_persistent_cookie_store_perftest.cc View 1 chunk +0 lines, -141 lines 0 comments Download
D content/browser/net/sqlite_persistent_cookie_store_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -681 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +3 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +2 lines, -2 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +1 line, -1 line 0 comments Download
M net/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +2 lines, -0 lines 0 comments Download
A + net/extras/sqlite/sqlite_persistent_cookie_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 4 chunks +23 lines, -29 lines 0 comments Download
A + net/extras/sqlite/sqlite_persistent_cookie_store.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 54 chunks +220 lines, -319 lines 0 comments Download
A + net/extras/sqlite/sqlite_persistent_cookie_store_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 9 chunks +24 lines, -24 lines 0 comments Download
A + net/extras/sqlite/sqlite_persistent_cookie_store_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 29 chunks +80 lines, -98 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (7 generated)
rohitrao (ping after 24h)
Not ready for a real review, but the basic structure is in place now. I ...
5 years, 9 months ago (2015-03-17 23:05:40 UTC) #2
rohitrao (ping after 24h)
Question inline about blocking tasks during shutdown. https://codereview.chromium.org/1016643004/diff/60001/content/browser/net/quota_policy_cookie_store_unittest.cc File content/browser/net/quota_policy_cookie_store_unittest.cc (right): https://codereview.chromium.org/1016643004/diff/60001/content/browser/net/quota_policy_cookie_store_unittest.cc#newcode81 content/browser/net/quota_policy_cookie_store_unittest.cc:81: pool_owner_->pool()->Shutdown(3); @rsleevi ...
5 years, 9 months ago (2015-03-18 14:37:34 UTC) #3
rohitrao (ping after 24h)
I think what's happening is that, at the point where I call DestroyStore(), some task ...
5 years, 9 months ago (2015-03-18 20:33:09 UTC) #4
rohitrao (ping after 24h)
Ok, trybots seem pretty happy now. I believe this is ready for a real review. ...
5 years, 9 months ago (2015-03-18 23:56:39 UTC) #5
Ryan Sleevi
An initial first pass https://codereview.chromium.org/1016643004/diff/140001/content/browser/net/quota_policy_cookie_store.cc File content/browser/net/quota_policy_cookie_store.cc (right): https://codereview.chromium.org/1016643004/diff/140001/content/browser/net/quota_policy_cookie_store.cc#newcode56 content/browser/net/quota_policy_cookie_store.cc:56: it != cookies_per_origin_.end(); ++it) { ...
5 years, 9 months ago (2015-03-19 03:37:51 UTC) #6
Ryan Sleevi
Oh, and adding mef for shadowing the review / so he can own this code ...
5 years, 9 months ago (2015-03-19 03:38:39 UTC) #8
rohitrao (ping after 24h)
Note that this CL also contains the same forced-Commit() call as the ChannelID CL I ...
5 years, 9 months ago (2015-03-19 14:55:42 UTC) #9
Ryan Sleevi
Not that I'm dying for more reviews, bug ping on this and the related CL?
5 years, 8 months ago (2015-04-02 06:54:19 UTC) #10
rohitrao (ping after 24h)
Hah, I was about to ping you to take a look =) I've addressed your ...
5 years, 8 months ago (2015-04-02 14:44:11 UTC) #11
mef
https://codereview.chromium.org/1016643004/diff/170001/content/browser/net/quota_policy_cookie_store.cc File content/browser/net/quota_policy_cookie_store.cc (right): https://codereview.chromium.org/1016643004/diff/170001/content/browser/net/quota_policy_cookie_store.cc#newcode1 content/browser/net/quota_policy_cookie_store.cc:1: // Copyright (c) 2015 The Chromium Authors. All rights ...
5 years, 8 months ago (2015-04-06 21:00:27 UTC) #12
rohitrao (ping after 24h)
I also had a few questions in the comments in Patchset #8. https://codereview.chromium.org/1016643004/diff/170001/content/browser/net/quota_policy_cookie_store.cc File content/browser/net/quota_policy_cookie_store.cc ...
5 years, 8 months ago (2015-04-07 14:43:47 UTC) #13
rohitrao (ping after 24h)
This is rebased and ready for another look. erikchen has a CL out that will ...
5 years, 8 months ago (2015-04-27 14:04:36 UTC) #14
rohitrao (ping after 24h)
Ryan, will you have a chance to look at this CL? Thanks! (I'm continuing to ...
5 years, 7 months ago (2015-05-04 23:14:40 UTC) #15
Ryan Sleevi
https://codereview.chromium.org/1016643004/diff/350001/content/browser/net/quota_policy_cookie_store.cc File content/browser/net/quota_policy_cookie_store.cc (right): https://codereview.chromium.org/1016643004/diff/350001/content/browser/net/quota_policy_cookie_store.cc#newcode41 content/browser/net/quota_policy_cookie_store.cc:41: crypto_delegate)) { DESIGN: Does it make more sense to ...
5 years, 7 months ago (2015-05-06 00:44:19 UTC) #16
Ryan Sleevi
Also adding nharper@ for shadow reviewing and to spam in inbox ;)
5 years, 7 months ago (2015-05-06 00:48:44 UTC) #18
rohitrao (ping after 24h)
Most comments addressed. I had a followup question about the "potentially dangerous" code in QuotaPolicyCookieStore::Load(), ...
5 years, 7 months ago (2015-05-11 19:25:31 UTC) #19
Ryan Sleevi
LGTM % many many nits :) https://codereview.chromium.org/1016643004/diff/350001/content/browser/net/quota_policy_cookie_store.cc File content/browser/net/quota_policy_cookie_store.cc (right): https://codereview.chromium.org/1016643004/diff/350001/content/browser/net/quota_policy_cookie_store.cc#newcode72 content/browser/net/quota_policy_cookie_store.cc:72: base::Bind(&QuotaPolicyCookieStore::OnLoad, this, loaded_callback)); ...
5 years, 7 months ago (2015-05-12 00:48:34 UTC) #20
mef
lgtm https://codereview.chromium.org/1016643004/diff/390001/content/browser/net/quota_policy_cookie_store.h File content/browser/net/quota_policy_cookie_store.h (right): https://codereview.chromium.org/1016643004/diff/390001/content/browser/net/quota_policy_cookie_store.h#newcode5 content/browser/net/quota_policy_cookie_store.h:5: // A cookie monster persistent store that deletes ...
5 years, 7 months ago (2015-05-12 21:23:28 UTC) #21
rohitrao (ping after 24h)
Ryan, can you please take another look at the changes to quota_policy_cookie_store.cc and the associated ...
5 years, 7 months ago (2015-05-13 17:05:08 UTC) #22
Ryan Sleevi
After reviewing the mess of things, I think you're fine to go pre-WeakPtr change. As ...
5 years, 7 months ago (2015-05-14 01:19:35 UTC) #23
rohitrao (ping after 24h)
https://codereview.chromium.org/1016643004/diff/390001/content/browser/net/quota_policy_cookie_store_unittest.cc File content/browser/net/quota_policy_cookie_store_unittest.cc (right): https://codereview.chromium.org/1016643004/diff/390001/content/browser/net/quota_policy_cookie_store_unittest.cc#newcode59 content/browser/net/quota_policy_cookie_store_unittest.cc:59: pool_owner_->pool()->GetNamedSequenceToken("background")); > Yeah, but why not just do that ...
5 years, 7 months ago (2015-05-14 15:48:34 UTC) #24
rohitrao (ping after 24h)
+Avi for content OWNERS approval No code has changed substantially, I'm just splitting the old ...
5 years, 7 months ago (2015-05-14 15:49:43 UTC) #27
Avi (use Gerrit)
lgtm nitting away https://codereview.chromium.org/1016643004/diff/450001/content/browser/net/quota_policy_cookie_store.h File content/browser/net/quota_policy_cookie_store.h (right): https://codereview.chromium.org/1016643004/diff/450001/content/browser/net/quota_policy_cookie_store.h#newcode5 content/browser/net/quota_policy_cookie_store.h:5: // A cookie monster persistent store ...
5 years, 7 months ago (2015-05-14 19:11:31 UTC) #28
rohitrao (ping after 24h)
Thanks for the reviews! https://codereview.chromium.org/1016643004/diff/450001/content/browser/net/quota_policy_cookie_store.h File content/browser/net/quota_policy_cookie_store.h (right): https://codereview.chromium.org/1016643004/diff/450001/content/browser/net/quota_policy_cookie_store.h#newcode5 content/browser/net/quota_policy_cookie_store.h:5: // A cookie monster persistent ...
5 years, 7 months ago (2015-05-14 20:32:11 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1016643004/470001
5 years, 7 months ago (2015-05-14 20:33:21 UTC) #32
commit-bot: I haz the power
Committed patchset #25 (id:470001)
5 years, 7 months ago (2015-05-14 22:22:39 UTC) #33
commit-bot: I haz the power
Patchset 25 (id:??) landed as https://crrev.com/57adf29fb4e46a49272610140b097f85e1e805f5 Cr-Commit-Position: refs/heads/master@{#329950}
5 years, 7 months ago (2015-05-14 22:23:26 UTC) #34
henrika (OOO until Aug 14)
5 years, 7 months ago (2015-05-15 11:12:27 UTC) #35
Message was sent while issue was closed.
A revert of this CL (patchset #25 id:470001) has been created in
https://codereview.chromium.org/1134113007/ by henrika@chromium.org.

The reason for reverting is: Seems to break content_unittests
QuotaPolicyCookieStoreTest.TestPolicy. See
https://build.chromium.org/p/chromium.webrtc/builders/Win7%20Tester for details.

Reverting to see if the bot turns green again. I am unable to find any other CL
that can cause this..

Powered by Google App Engine
This is Rietveld 408576698