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

Issue 1267843003: Fix reconcilor loop when the primary account is in an auth error state. (Closed)

Created:
5 years, 4 months ago by Roger Tawa OOO till Jul 10th
Modified:
5 years, 4 months ago
Reviewers:
nyquist, anthonyvd
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix reconcilor loop when the primary account is in an auth error state. This CL changes the reconcilor to not merge accounts which are known to be in some kind of auth error state. If they are not present in the gaia cookie, their absence will not trigger a new reconcile cycle. Added tests to help detect new code that may introduce a loop. BUG=516070 Committed: https://crrev.com/dc1e24b7e50bc39c25f23e272a154837360fb563 Cr-Commit-Position: refs/heads/master@{#342900}

Patch Set 1 #

Patch Set 2 : Fix test name #

Patch Set 3 : rebased #

Patch Set 4 : rebased #

Total comments: 2

Patch Set 5 : rebased #

Total comments: 4

Patch Set 6 : Address review comments #

Patch Set 7 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -24 lines) Patch
M chrome/browser/signin/account_reconcilor_unittest.cc View 1 2 3 4 5 6 3 chunks +98 lines, -0 lines 0 comments Download
M chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/signin/oauth2_token_service_delegate_android.h View 1 4 chunks +14 lines, -3 lines 0 comments Download
M chrome/browser/signin/oauth2_token_service_delegate_android.cc View 1 2 3 4 5 2 chunks +20 lines, -1 line 0 comments Download
M components/signin/core/browser/account_reconcilor.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/signin/core/browser/account_reconcilor.cc View 1 4 chunks +30 lines, -4 lines 0 comments Download
M components/signin/ios/browser/profile_oauth2_token_service_ios_delegate.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M components/signin/ios/browser/profile_oauth2_token_service_ios_delegate.mm View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M google_apis/gaia/fake_oauth2_token_service_delegate.h View 1 3 chunks +16 lines, -2 lines 0 comments Download
M google_apis/gaia/fake_oauth2_token_service_delegate.cc View 1 2 3 4 5 5 chunks +27 lines, -10 lines 0 comments Download
M google_apis/gaia/oauth2_token_service_delegate.h View 1 2 3 4 5 2 chunks +8 lines, -1 line 0 comments Download
M google_apis/gaia/oauth2_token_service_delegate.cc View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
nyquist
lgtm
5 years, 4 months ago (2015-08-01 00:02:21 UTC) #2
Roger Tawa OOO till Jul 10th
Hi Anthony, Can you please take a look? Tommy: can you take another loop? This ...
5 years, 4 months ago (2015-08-06 13:42:13 UTC) #11
nyquist
still lgtm https://codereview.chromium.org/1267843003/diff/180001/chrome/browser/signin/account_reconcilor_unittest.cc File chrome/browser/signin/account_reconcilor_unittest.cc (right): https://codereview.chromium.org/1267843003/diff/180001/chrome/browser/signin/account_reconcilor_unittest.cc#newcode788 chrome/browser/signin/account_reconcilor_unittest.cc:788: // The priamry account is in auth ...
5 years, 4 months ago (2015-08-11 05:44:31 UTC) #12
anthonyvd
lgtm % a couple questions. Sorry for the delay! https://codereview.chromium.org/1267843003/diff/200001/chrome/browser/signin/oauth2_token_service_delegate_android.cc File chrome/browser/signin/oauth2_token_service_delegate_android.cc (right): https://codereview.chromium.org/1267843003/diff/200001/chrome/browser/signin/oauth2_token_service_delegate_android.cc#newcode198 chrome/browser/signin/oauth2_token_service_delegate_android.cc:198: ...
5 years, 4 months ago (2015-08-11 15:43:10 UTC) #13
Roger Tawa OOO till Jul 10th
Thanks guys. Anthony: implemented as we discussed. https://codereview.chromium.org/1267843003/diff/200001/chrome/browser/signin/oauth2_token_service_delegate_android.cc File chrome/browser/signin/oauth2_token_service_delegate_android.cc (right): https://codereview.chromium.org/1267843003/diff/200001/chrome/browser/signin/oauth2_token_service_delegate_android.cc#newcode198 chrome/browser/signin/oauth2_token_service_delegate_android.cc:198: : it->second.error.state() ...
5 years, 4 months ago (2015-08-11 16:25:26 UTC) #14
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/1267843003/diff/180001/chrome/browser/signin/account_reconcilor_unittest.cc File chrome/browser/signin/account_reconcilor_unittest.cc (right): https://codereview.chromium.org/1267843003/diff/180001/chrome/browser/signin/account_reconcilor_unittest.cc#newcode788 chrome/browser/signin/account_reconcilor_unittest.cc:788: // The priamry account is in auth error, so ...
5 years, 4 months ago (2015-08-11 16:27:26 UTC) #15
anthonyvd
Thanks! Still lgtm
5 years, 4 months ago (2015-08-11 16:29:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1267843003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1267843003/240001
5 years, 4 months ago (2015-08-11 19:11:18 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/26961)
5 years, 4 months ago (2015-08-11 20:10:27 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1267843003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1267843003/240001
5 years, 4 months ago (2015-08-11 20:23:31 UTC) #23
commit-bot: I haz the power
Committed patchset #7 (id:240001)
5 years, 4 months ago (2015-08-11 21:20:59 UTC) #24
commit-bot: I haz the power
5 years, 4 months ago (2015-08-11 21:21:43 UTC) #25
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/dc1e24b7e50bc39c25f23e272a154837360fb563
Cr-Commit-Position: refs/heads/master@{#342900}

Powered by Google App Engine
This is Rietveld 408576698