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

Issue 63253003: Fix issues with token refresh in AccountReconcilor (Closed)

Created:
7 years, 1 month ago by acleung1
Modified:
7 years ago
CC:
chromium-reviews, rginda+watch_chromium.org, aruslan
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix issues with token refresh in AccountReconcilor The CL was change a bit as suggested by the reviewers. This CL now introduces a worklist model in GoogleAutoLoginHelper. Instead of firing all the refresh token events in a row, it queues up all the login requests and insert GAIA cookies one-by-one. This would let accounts to be appended instead of overwriting one another. This also introduces GoogleAutoLoginHelperTest for some unit testing. BUG=305249 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238547

Patch Set 1 #

Patch Set 2 : wip #

Patch Set 3 : wip #

Patch Set 4 : wip #

Patch Set 5 : wip #

Total comments: 3

Patch Set 6 : wip #

Patch Set 7 : wip #

Patch Set 8 : remove the event #

Total comments: 9

Patch Set 9 : wip #

Patch Set 10 : wip #

Patch Set 11 : added missing files #

Total comments: 10

Patch Set 12 : address comments #

Patch Set 13 : fix clang errors #

Patch Set 14 : clean up testing profiles in tests. #

Patch Set 15 : avoid message loop in test #

Patch Set 16 : fix unit tests. #

Patch Set 17 : clean up #

Patch Set 18 : wip #

Patch Set 19 : wip #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -15 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/signin/OAuth2TokenServiceIntegrationTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/android/signin/signin_manager_android.cc View 1 2 3 4 5 6 7 8 2 chunks +22 lines, -3 lines 0 comments Download
M chrome/browser/signin/account_reconcilor.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/signin/android_profile_oauth2_token_service.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/signin/android_profile_oauth2_token_service.cc View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/signin/google_auto_login_helper.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/signin/google_auto_login_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +51 lines, -9 lines 0 comments Download
A chrome/browser/signin/google_auto_login_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +116 lines, -0 lines 0 comments Download
M chrome/browser/signin/ubertoken_fetcher.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
acleung1
7 years, 1 month ago (2013-11-07 22:01:24 UTC) #1
Roger Tawa OOO till Jul 10th
Hi Alan, See comments below, but I think you should be able to achieve the ...
7 years, 1 month ago (2013-11-08 13:17:31 UTC) #2
acleung1
https://codereview.chromium.org/63253003/diff/90001/chrome/browser/signin/account_reconcilor.cc File chrome/browser/signin/account_reconcilor.cc (right): https://codereview.chromium.org/63253003/diff/90001/chrome/browser/signin/account_reconcilor.cc#newcode175 chrome/browser/signin/account_reconcilor.cc:175: } On 2013/11/08 13:17:31, Roger Tawa wrote: > If ...
7 years, 1 month ago (2013-11-08 22:21:48 UTC) #3
Roger Tawa OOO till Jul 10th
On 2013/11/08 22:21:48, acleung1 wrote: > https://codereview.chromium.org/63253003/diff/90001/chrome/browser/signin/account_reconcilor.cc > File chrome/browser/signin/account_reconcilor.cc (right): > > https://codereview.chromium.org/63253003/diff/90001/chrome/browser/signin/account_reconcilor.cc#newcode175 > ...
7 years, 1 month ago (2013-11-09 02:31:39 UTC) #4
acleung1
You are right. The URL fetcher actually guarantee to execute the callback on the calling ...
7 years, 1 month ago (2013-11-18 21:17:54 UTC) #5
Roger Tawa OOO till Jul 10th
Sorry for late response Alan. See questions below. Also would need some unit tests for ...
7 years, 1 month ago (2013-11-21 16:02:31 UTC) #6
acleung1
Hello Roger This CL is ready for another look. -Alan https://codereview.chromium.org/63253003/diff/270001/chrome/browser/android/signin/signin_manager_android.cc File chrome/browser/android/signin/signin_manager_android.cc (right): https://codereview.chromium.org/63253003/diff/270001/chrome/browser/android/signin/signin_manager_android.cc#newcode230 ...
7 years ago (2013-11-26 09:28:31 UTC) #7
Roger Tawa OOO till Jul 10th
lgtm, a few nits below. For the TODO, I created a new bug so that ...
7 years ago (2013-11-27 18:45:42 UTC) #8
acleung1
https://codereview.chromium.org/63253003/diff/430001/chrome/browser/signin/google_auto_login_helper.cc File chrome/browser/signin/google_auto_login_helper.cc (right): https://codereview.chromium.org/63253003/diff/430001/chrome/browser/signin/google_auto_login_helper.cc#newcode15 chrome/browser/signin/google_auto_login_helper.cc:15: GoogleAutoLoginHelper::~GoogleAutoLoginHelper() {} On 2013/11/27 18:45:43, Roger Tawa wrote: > ...
7 years ago (2013-11-28 00:52:44 UTC) #9
acleung1
Hey Tommy, can I get a lgtm on the chrome/browser/android/signin changes? Thanks.
7 years ago (2013-11-28 00:54:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acleung@chromium.org/63253003/450001
7 years ago (2013-11-28 01:17:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acleung@chromium.org/63253003/450001
7 years ago (2013-11-28 01:59:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acleung@chromium.org/63253003/450001
7 years ago (2013-11-28 02:20:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acleung@chromium.org/63253003/450001
7 years ago (2013-11-28 02:27:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acleung@chromium.org/63253003/450001
7 years ago (2013-11-28 02:58:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acleung@chromium.org/63253003/450001
7 years ago (2013-11-28 03:29:03 UTC) #16
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=38509
7 years ago (2013-11-28 03:57:22 UTC) #17
nyquist
chrome/browser/android/signin/ lgtm
7 years ago (2013-12-02 22:47:01 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acleung@chromium.org/63253003/550001
7 years ago (2013-12-02 23:01:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acleung@chromium.org/63253003/590001
7 years ago (2013-12-03 23:35:01 UTC) #20
commit-bot: I haz the power
7 years ago (2013-12-04 03:33:25 UTC) #21
Message was sent while issue was closed.
Change committed as 238547

Powered by Google App Engine
This is Rietveld 408576698