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

Issue 19567004: Convert SigninTracker to use OAuth2TokenService notifications (Closed)

Created:
7 years, 5 months ago by Roger Tawa OOO till Jul 10th
Modified:
7 years, 3 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Convert SigninTracker to use OAuth2TokenService notifications instead of TokenService notifications. By removing support for the kSyncService token, this breaks ClientLogin sign ins, but those are now deprecated on all platforms. BUG=258107 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222709

Patch Set 1 : merged #

Patch Set 2 : Fix unit tests on mac and linux #

Patch Set 3 : rebased #

Patch Set 4 : rebased #

Patch Set 5 : rebased #

Patch Set 6 : rebased #

Patch Set 7 : rebased #

Total comments: 13

Patch Set 8 : rebased #

Patch Set 9 : Address review comments, fix FakePO2TS to call Init/Shutdown, fix merge problems #

Patch Set 10 : Remove DCHECK for re-auth case #

Patch Set 11 : Fix tests on android #

Patch Set 12 : Fix tests on android again #

Patch Set 13 : Speculative fix for bad refresh token #

Total comments: 4

Patch Set 14 : Address Filip's review comments #

Total comments: 6

Patch Set 15 : rebased #

Patch Set 16 : Different implementation to handle bad refresh token #

Patch Set 17 : 3rd implementation to handle bad refresh token #

Total comments: 6

Patch Set 18 : rebased #

Patch Set 19 : Make function private, fix first_run #

Patch Set 20 : rebased #

Patch Set 21 : rebased #

Patch Set 22 : Address review comments #

Patch Set 23 : rebased #

Total comments: 6

Patch Set 24 : Init member in ctor #

Patch Set 25 : rebased #

Patch Set 26 : Fix unit test, Revoked #

Patch Set 27 : rebased #

Patch Set 28 : Fix removed uneeded function #

Patch Set 29 : Merged #

Patch Set 30 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -288 lines) Patch
M chrome/browser/first_run/first_run.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/signin/fake_profile_oauth2_token_service.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/signin/fake_profile_oauth2_token_service.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/signin/signin_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/signin/signin_tracker.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +12 lines, -30 lines 0 comments Download
M chrome/browser/signin/signin_tracker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +21 lines, -115 lines 0 comments Download
M chrome/browser/signin/signin_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 4 chunks +22 lines, -97 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 5 chunks +31 lines, -20 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 11 chunks +32 lines, -10 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter_unittest.cc View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Roger Tawa OOO till Jul 10th
Hi Drew, Please take a look. Thanks.
7 years, 4 months ago (2013-08-12 20:01:11 UTC) #1
Andrew T Wilson (Slow)
Mostly LG, but I had a few comments (and I think my new FakeProfileOAuth2TokenService will ...
7 years, 4 months ago (2013-08-19 15:23:06 UTC) #2
Roger Tawa OOO till Jul 10th
Thanks Drew. Addressed all your comments but the DCHECK, sent you an email about it. ...
7 years, 3 months ago (2013-08-29 19:28:41 UTC) #3
fgorski
Looks good, with a couple of comments. https://codereview.chromium.org/19567004/diff/173001/chrome/browser/signin/profile_oauth2_token_service.cc File chrome/browser/signin/profile_oauth2_token_service.cc (right): https://codereview.chromium.org/19567004/diff/173001/chrome/browser/signin/profile_oauth2_token_service.cc#newcode132 chrome/browser/signin/profile_oauth2_token_service.cc:132: } You ...
7 years, 3 months ago (2013-08-29 22:31:12 UTC) #4
Roger Tawa OOO till Jul 10th
Thanks Filip. Comments addressed, changes uploaded. https://codereview.chromium.org/19567004/diff/173001/chrome/browser/signin/profile_oauth2_token_service.cc File chrome/browser/signin/profile_oauth2_token_service.cc (right): https://codereview.chromium.org/19567004/diff/173001/chrome/browser/signin/profile_oauth2_token_service.cc#newcode132 chrome/browser/signin/profile_oauth2_token_service.cc:132: } On 2013/08/29 ...
7 years, 3 months ago (2013-08-30 02:25:14 UTC) #5
Andrew T Wilson (Slow)
So, still really frightened about blowing away refresh tokens. Also, I think SigninTracker needs to ...
7 years, 3 months ago (2013-08-30 09:03:33 UTC) #6
Roger Tawa OOO till Jul 10th
Thanks Drew. Please take another look. I have changed the code to not revoke the ...
7 years, 3 months ago (2013-08-30 15:55:40 UTC) #7
Andrew T Wilson (Slow)
So, I think this would probably work, but I think we're missing out on an ...
7 years, 3 months ago (2013-08-31 14:04:10 UTC) #8
Roger Tawa OOO till Jul 10th
Hi Drew, please take a look. Thanks. https://codereview.chromium.org/19567004/diff/209001/chrome/browser/signin/signin_tracker.cc File chrome/browser/signin/signin_tracker.cc (right): https://codereview.chromium.org/19567004/diff/209001/chrome/browser/signin/signin_tracker.cc#newcode75 chrome/browser/signin/signin_tracker.cc:75: if (state_ ...
7 years, 3 months ago (2013-09-07 14:03:37 UTC) #9
Andrew T Wilson (Slow)
lgtm with a couple of questions/nits. https://codereview.chromium.org/19567004/diff/150001/chrome/browser/signin/signin_tracker.cc File chrome/browser/signin/signin_tracker.cc (right): https://codereview.chromium.org/19567004/diff/150001/chrome/browser/signin/signin_tracker.cc#newcode74 chrome/browser/signin/signin_tracker.cc:74: GoogleServiceAuthError(GoogleServiceAuthError::REQUEST_CANCELED)); Can we ...
7 years, 3 months ago (2013-09-09 12:08:27 UTC) #10
Roger Tawa OOO till Jul 10th
Thanks Drew. https://codereview.chromium.org/19567004/diff/150001/chrome/browser/signin/signin_tracker.cc File chrome/browser/signin/signin_tracker.cc (right): https://codereview.chromium.org/19567004/diff/150001/chrome/browser/signin/signin_tracker.cc#newcode74 chrome/browser/signin/signin_tracker.cc:74: GoogleServiceAuthError(GoogleServiceAuthError::REQUEST_CANCELED)); On 2013/09/09 12:08:27, Andrew T Wilson ...
7 years, 3 months ago (2013-09-10 14:29:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerta@chromium.org/19567004/280001
7 years, 3 months ago (2013-09-11 14:54:20 UTC) #12
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=24895
7 years, 3 months ago (2013-09-11 15:08:36 UTC) #13
Roger Tawa OOO till Jul 10th
Hi Gab, Can you do an owner review for first_run.cc? Thanks.
7 years, 3 months ago (2013-09-11 15:32:24 UTC) #14
gab
lgtm stamp for first_run.cc (trusting you and other reviewers that manager->AuthInProgress() results in the same ...
7 years, 3 months ago (2013-09-11 17:11:13 UTC) #15
Roger Tawa OOO till Jul 10th
Hi Gab, The behaviour is the same. Sign in used to happen in two phases: ...
7 years, 3 months ago (2013-09-11 19:36:16 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerta@chromium.org/19567004/280001
7 years, 3 months ago (2013-09-11 19:37:44 UTC) #17
commit-bot: I haz the power
7 years, 3 months ago (2013-09-12 05:26:50 UTC) #18
Message was sent while issue was closed.
Change committed as 222709

Powered by Google App Engine
This is Rietveld 408576698