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

Issue 2971323002: Switch cookie async mechanism over to using callbacks. (Closed)

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

Description

Switch cookie async mechanism over to using callbacks. Switch mechanism for delaying cookie reuqests until the appropriate parts of the cookie database are loaded over to using callbacks instead of home-grown classes. BUG=None R=mmenke@chromium.org Review-Url: https://codereview.chromium.org/2971323002 Cr-Commit-Position: refs/heads/master@{#486105} Committed: https://chromium.googlesource.com/chromium/src/+/e5c701df767b131a3074131a886314e53a7dd0dd

Patch Set 1 #

Total comments: 13

Patch Set 2 : Added back in null callback tests. #

Total comments: 1

Patch Set 3 : Converted all interfaces over to callback. #

Patch Set 4 : Put callback null tests back in :-}. #

Patch Set 5 : Avoid BindOnce on null callbacks. #

Patch Set 6 : Cleanup usage of GetAllCookies() in cookie_monster_perftest.cc #

Patch Set 7 : Sync'd to p485987 #

Total comments: 37

Patch Set 8 : Incorporated comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+405 lines, -763 lines) Patch
M net/cookies/cookie_monster.h View 1 2 3 4 5 6 8 chunks +48 lines, -68 lines 0 comments Download
M net/cookies/cookie_monster.cc View 1 2 3 4 5 6 7 27 chunks +291 lines, -670 lines 0 comments Download
M net/cookies/cookie_monster_perftest.cc View 1 2 3 4 5 6 7 5 chunks +26 lines, -7 lines 0 comments Download
M net/cookies/cookie_monster_unittest.cc View 1 2 3 4 5 6 7 3 chunks +40 lines, -18 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 47 (31 generated)
mmenke
https://codereview.chromium.org/2971323002/diff/1/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (right): https://codereview.chromium.org/2971323002/diff/1/net/cookies/cookie_monster.cc#newcode109 net/cookies/cookie_monster.cc:109: std::move(response).Run(std::move(function).Run()); The old code null checked all of these ...
3 years, 5 months ago (2017-07-07 16:54:58 UTC) #5
Randy Smith (Not in Mondays)
*chuckle* I hadn't actually intended to submit this for review yet, specifically because I wanted ...
3 years, 5 months ago (2017-07-07 20:09:55 UTC) #6
mmenke
On 2017/07/07 20:09:55, Randy Smith (Not in Mondays) wrote: > *chuckle* I hadn't actually intended ...
3 years, 5 months ago (2017-07-07 20:15:12 UTC) #7
Randy Smith (Not in Mondays)
Comments responded to, and callback testing put back in; PTAL? One specific thing I'd like ...
3 years, 5 months ago (2017-07-08 15:02:08 UTC) #12
Randy Smith (Not in Mondays)
Sorry, one other note on a piece of code you might or might not want ...
3 years, 5 months ago (2017-07-08 15:05:22 UTC) #13
mmenke
May do another pass today, may put it off for a day or two. https://codereview.chromium.org/2971323002/diff/1/net/cookies/cookie_monster.cc ...
3 years, 5 months ago (2017-07-10 16:27:28 UTC) #14
mmenke
Not trying to convince you to do more cleanup - you're right that there's always ...
3 years, 5 months ago (2017-07-10 16:39:49 UTC) #15
Randy Smith (Not in Mondays)
https://codereview.chromium.org/2971323002/diff/1/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (right): https://codereview.chromium.org/2971323002/diff/1/net/cookies/cookie_monster.cc#newcode451 net/cookies/cookie_monster.cc:451: base::BindOnce( On 2017/07/10 16:27:28, mmenke wrote: > On 2017/07/08 ...
3 years, 5 months ago (2017-07-11 15:47:08 UTC) #16
mmenke
https://codereview.chromium.org/2971323002/diff/1/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (right): https://codereview.chromium.org/2971323002/diff/1/net/cookies/cookie_monster.cc#newcode451 net/cookies/cookie_monster.cc:451: base::BindOnce( On 2017/07/11 15:47:07, Randy Smith (Not in Mondays) ...
3 years, 5 months ago (2017-07-11 15:50:55 UTC) #17
Randy Smith (Not in Mondays)
I'm going to call this good enough on try jobs to request another review. Two ...
3 years, 5 months ago (2017-07-12 16:00:35 UTC) #32
mmenke
https://codereview.chromium.org/2971323002/diff/120001/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (right): https://codereview.chromium.org/2971323002/diff/120001/net/cookies/cookie_monster.cc#newcode105 net/cookies/cookie_monster.cc:105: void ConditionalDeleteCallback(base::WeakPtr<net::CookieMonster> cookie_monster, Suggest renaming these so it's clearer ...
3 years, 5 months ago (2017-07-12 18:29:05 UTC) #35
Randy Smith (Not in Mondays)
Ok, there's enough green for me to ask for another round of review. PTAL? https://codereview.chromium.org/2971323002/diff/120001/net/cookies/cookie_monster.cc ...
3 years, 5 months ago (2017-07-12 19:47:35 UTC) #38
mmenke
LGTM! https://codereview.chromium.org/2971323002/diff/120001/net/cookies/cookie_monster.cc File net/cookies/cookie_monster.cc (right): https://codereview.chromium.org/2971323002/diff/120001/net/cookies/cookie_monster.cc#newcode872 net/cookies/cookie_monster.cc:872: // TODO(rdsmith): Would be good to provide a ...
3 years, 5 months ago (2017-07-12 20:00:11 UTC) #39
Randy Smith (Not in Mondays)
On 2017/07/12 20:00:11, mmenke wrote: > LGTM! > > https://codereview.chromium.org/2971323002/diff/120001/net/cookies/cookie_monster.cc > File net/cookies/cookie_monster.cc (right): > ...
3 years, 5 months ago (2017-07-12 20:03:56 UTC) #40
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/2971323002/140001
3 years, 5 months ago (2017-07-12 21:44:24 UTC) #44
commit-bot: I haz the power
3 years, 5 months ago (2017-07-12 21:50:17 UTC) #47
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/e5c701df767b131a3074131a8863...

Powered by Google App Engine
This is Rietveld 408576698