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

Issue 1698693002: Make CookieStore no longer threadsafe. (Closed)

Created:
4 years, 10 months ago by mmenke
Modified:
4 years, 9 months ago
Reviewers:
Mike West
CC:
cbentzel+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@getcookiemonster
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make CookieStore no longer threadsafe. In practice, it's only used on one thread, and it's one of the few net classes that tries to be threadsafe. This also removes a lot of locking, which Chromium code generally tries to avoid doing. Other than removing thread-safety, and invoking FlushStore's callback on the network thread, the API is unchanged. BUG=46185 Committed: https://crrev.com/be0910d6b03b3433448d25587ac57035d227b0d9 Cr-Commit-Position: refs/heads/master@{#378505}

Patch Set 1 #

Patch Set 2 : Use weak pointers #

Patch Set 3 : Fix stuff #

Patch Set 4 : merge #

Total comments: 9

Patch Set 5 : response to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -715 lines) Patch
M net/cookies/cookie_monster.h View 1 2 3 11 chunks +17 lines, -16 lines 0 comments Download
M net/cookies/cookie_monster.cc View 1 2 3 4 57 chunks +158 lines, -178 lines 0 comments Download
M net/cookies/cookie_monster_unittest.cc View 1 2 3 2 chunks +0 lines, -328 lines 0 comments Download
M net/cookies/cookie_store.h View 1 2 3 2 chunks +6 lines, -12 lines 0 comments Download
M net/cookies/cookie_store_unittest.h View 1 2 3 1 chunk +0 lines, -173 lines 0 comments Download
M net/extras/sqlite/sqlite_persistent_cookie_store.cc View 5 chunks +15 lines, -8 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 20 (10 generated)
mmenke
None of the FlushStore() callers seem to care about when it's called. And since calling ...
4 years, 9 months ago (2016-02-29 20:22:05 UTC) #5
Randy Smith (Not in Mondays)
[Drive by, not planning to do a full review, please don't hold on my stamp ...
4 years, 9 months ago (2016-02-29 21:10:30 UTC) #7
mmenke
On 2016/02/29 21:10:30, Randy Smith - Not in Fridays wrote: > [Drive by, not planning ...
4 years, 9 months ago (2016-02-29 21:15:23 UTC) #8
Randy Smith (Not in Mondays)
Please belay that question; didn't look closely enough. Carry on :-}.
4 years, 9 months ago (2016-02-29 21:15:34 UTC) #10
mmenke
On 2016/02/29 21:15:23, mmenke wrote: > On 2016/02/29 21:10:30, Randy Smith - Not in Fridays ...
4 years, 9 months ago (2016-02-29 21:22:07 UTC) #11
Mike West
LGTM. I really like seeing a million unit tests become obsolete, and all those AutoLock ...
4 years, 9 months ago (2016-03-01 13:59:28 UTC) #12
mmenke
Thanks! https://codereview.chromium.org/1698693002/diff/90001/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (right): https://codereview.chromium.org/1698693002/diff/90001/net/cookies/cookie_monster.cc#newcode1346 net/cookies/cookie_monster.cc:1346: // TODO(mmenke): Can this be turned into a ...
4 years, 9 months ago (2016-03-01 16:03:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1698693002/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1698693002/110001
4 years, 9 months ago (2016-03-01 16:04:16 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:110001)
4 years, 9 months ago (2016-03-01 19:09:17 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-03-01 19:10:37 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/be0910d6b03b3433448d25587ac57035d227b0d9
Cr-Commit-Position: refs/heads/master@{#378505}

Powered by Google App Engine
This is Rietveld 408576698