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

Issue 695553002: Account reconcilor: Use cookie store cookie changed subscription. (Closed)

Created:
6 years, 1 month ago by msarda
Modified:
6 years, 1 month ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Account reconcilor: Use cookie store cookie changed subscription. This CL changes the account reconcilor to use the new cookie store API that allows clients to adds callback for cookie changed events. It adds logic to the chrome sign-in client to register for cookie changed events on the IO thread and call the cookie changed callback on the main thread. Note that in order to access the cookie store, we need to use the URL context which can only be used on the IO thread. Subscribing for cookie change events requires thus a thread jump to the IO thread on all platforms. BUG=NONE Committed: https://crrev.com/a9d6912af5c098c91e85cd6eda7a7d65d4c9c028 Cr-Commit-Position: refs/heads/master@{#302639}

Patch Set 1 #

Patch Set 2 : Clean-up #

Patch Set 3 : Nit #

Patch Set 4 : iOS compile #

Patch Set 5 : Nits #

Patch Set 6 : Upstream the entire change #

Total comments: 17

Patch Set 7 : Nits #

Patch Set 8 : Nit #

Patch Set 9 : Avoid UI/IO thread ping-pong #

Total comments: 8

Patch Set 10 : Use thread runner #

Total comments: 9

Patch Set 11 : Nit #

Total comments: 6

Patch Set 12 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -105 lines) Patch
M chrome/browser/signin/chrome_signin_client.h View 2 chunks +4 lines, -18 lines 0 comments Download
M chrome/browser/signin/chrome_signin_client.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +11 lines, -51 lines 0 comments Download
A chrome/browser/signin/signin_cookie_changed_subscription.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +77 lines, -0 lines 0 comments Download
A chrome/browser/signin/signin_cookie_changed_subscription.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +105 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M components/signin/core/browser/about_signin_internals.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/signin/core/browser/about_signin_internals.cc View 2 chunks +9 lines, -8 lines 0 comments Download
M components/signin/core/browser/account_reconcilor.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/signin/core/browser/account_reconcilor.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M components/signin/core/browser/signin_client.h View 1 2 3 4 5 6 8 9 10 11 3 chunks +15 lines, -12 lines 0 comments Download
M components/signin/core/browser/test_signin_client.h View 1 2 3 4 5 2 chunks +6 lines, -5 lines 0 comments Download
M components/signin/core/browser/test_signin_client.cc View 1 2 3 4 5 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
msarda
Please take a look.
6 years, 1 month ago (2014-10-30 17:38:48 UTC) #2
msarda
Please take a look.
6 years, 1 month ago (2014-10-31 09:06:27 UTC) #3
msarda
Please take a look.
6 years, 1 month ago (2014-10-31 12:16:52 UTC) #5
droger
This CL is very similar to the other one, I only have minor comments. https://codereview.chromium.org/695553002/diff/100001/chrome/browser/signin/signin_cookie_changed_subscription.cc ...
6 years, 1 month ago (2014-10-31 12:42:02 UTC) #6
msarda
https://codereview.chromium.org/695553002/diff/100001/chrome/browser/signin/signin_cookie_changed_subscription.cc File chrome/browser/signin/signin_cookie_changed_subscription.cc (right): https://codereview.chromium.org/695553002/diff/100001/chrome/browser/signin/signin_cookie_changed_subscription.cc#newcode84 chrome/browser/signin/signin_cookie_changed_subscription.cc:84: // On iOS, the cookie store can only be ...
6 years, 1 month ago (2014-10-31 13:18:40 UTC) #7
droger
lgtm https://codereview.chromium.org/695553002/diff/100001/chrome/browser/signin/signin_cookie_changed_subscription.h File chrome/browser/signin/signin_cookie_changed_subscription.h (right): https://codereview.chromium.org/695553002/diff/100001/chrome/browser/signin/signin_cookie_changed_subscription.h#newcode17 chrome/browser/signin/signin_cookie_changed_subscription.h:17: public base::SupportsWeakPtr<SigninCookieChangedSubscription> { On 2014/10/31 13:18:40, msarda wrote: ...
6 years, 1 month ago (2014-10-31 13:56:09 UTC) #8
msarda
The last patch should fix the threading issue. Please take another look.
6 years, 1 month ago (2014-11-04 10:04:14 UTC) #9
droger
Looks like a couple unittests are now failing. https://codereview.chromium.org/695553002/diff/180001/chrome/browser/signin/chrome_signin_client.cc File chrome/browser/signin/chrome_signin_client.cc (right): https://codereview.chromium.org/695553002/diff/180001/chrome/browser/signin/chrome_signin_client.cc#newcode25 chrome/browser/signin/chrome_signin_client.cc:25: #include ...
6 years, 1 month ago (2014-11-04 10:31:36 UTC) #11
msarda
https://codereview.chromium.org/695553002/diff/180001/chrome/browser/signin/chrome_signin_client.cc File chrome/browser/signin/chrome_signin_client.cc (right): https://codereview.chromium.org/695553002/diff/180001/chrome/browser/signin/chrome_signin_client.cc#newcode25 chrome/browser/signin/chrome_signin_client.cc:25: #include "content/public/browser/notification_source.h" On 2014/11/04 10:31:36, droger wrote: > Do ...
6 years, 1 month ago (2014-11-04 12:06:06 UTC) #12
droger
LGTM! only nits. https://codereview.chromium.org/695553002/diff/200001/chrome/browser/signin/chrome_signin_client.cc File chrome/browser/signin/chrome_signin_client.cc (right): https://codereview.chromium.org/695553002/diff/200001/chrome/browser/signin/chrome_signin_client.cc#newcode206 chrome/browser/signin/chrome_signin_client.cc:206: return scoped_ptr<CookieChangedSubscription>(subscription.release()); return subscription; or if ...
6 years, 1 month ago (2014-11-04 12:44:49 UTC) #13
msarda
https://codereview.chromium.org/695553002/diff/200001/chrome/browser/signin/chrome_signin_client.cc File chrome/browser/signin/chrome_signin_client.cc (right): https://codereview.chromium.org/695553002/diff/200001/chrome/browser/signin/chrome_signin_client.cc#newcode206 chrome/browser/signin/chrome_signin_client.cc:206: return scoped_ptr<CookieChangedSubscription>(subscription.release()); On 2014/11/04 12:44:49, droger wrote: > return ...
6 years, 1 month ago (2014-11-04 12:53:19 UTC) #14
droger
https://codereview.chromium.org/695553002/diff/200001/chrome/browser/signin/signin_cookie_changed_subscription.h File chrome/browser/signin/signin_cookie_changed_subscription.h (right): https://codereview.chromium.org/695553002/diff/200001/chrome/browser/signin/signin_cookie_changed_subscription.h#newcode53 chrome/browser/signin/signin_cookie_changed_subscription.h:53: scoped_refptr<net::URLRequestContextGetter> context_getter_; On 2014/11/04 12:53:19, msarda wrote: > On ...
6 years, 1 month ago (2014-11-04 13:08:40 UTC) #15
Roger Tawa OOO till Jul 10th
lgtm For my own info, how does this fix the race condition on shutdown? https://codereview.chromium.org/695553002/diff/220001/chrome/browser/signin/signin_cookie_changed_subscription.h ...
6 years, 1 month ago (2014-11-04 16:24:24 UTC) #16
msarda
https://codereview.chromium.org/695553002/diff/220001/chrome/browser/signin/signin_cookie_changed_subscription.h File chrome/browser/signin/signin_cookie_changed_subscription.h (right): https://codereview.chromium.org/695553002/diff/220001/chrome/browser/signin/signin_cookie_changed_subscription.h#newcode29 chrome/browser/signin/signin_cookie_changed_subscription.h:29: void OnCookieChanged(const net::CanonicalCookie& cookie, bool removed); On 2014/11/04 16:24:24, ...
6 years, 1 month ago (2014-11-04 17:50:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/695553002/240001
6 years, 1 month ago (2014-11-04 17:50:42 UTC) #19
commit-bot: I haz the power
Committed patchset #12 (id:240001)
6 years, 1 month ago (2014-11-04 19:22:19 UTC) #20
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 19:23:00 UTC) #21
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/a9d6912af5c098c91e85cd6eda7a7d65d4c9c028
Cr-Commit-Position: refs/heads/master@{#302639}

Powered by Google App Engine
This is Rietveld 408576698