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

Issue 1256283002: GAIA ID migration for Android (Closed)

Created:
5 years, 4 months ago by gogerald1
Modified:
3 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GAIA ID migration for Android. Much work has been done over the last year to prepare Chrome to use Gaia obfuscated Ids as the unique identifier for Google accounts in Chrome. This cl implements this work for Android platform. On Android platform, Google accounts' credentials are maintained in Android, Chrome list accounts name and get access tokens from Android. Chrome must use account name as identification to communicate with Android. In addition, Chrome can only fetch accounts' Gaia Ids through GoogleAuthUtil.getAccountId which is a blocked interface. These facts make Gaia Id migration a little bit challenge for Android. Please refer below doc for details. https://docs.google.com/a/google.com/document/d/1XPVUmpm3OFU8ZbYTSxOVtxb0zOLRnRXR1OR5Pp4ryb0/edit?usp=sharing BUG=341408 Committed: https://crrev.com/63286f25d86e92e541e611092439d4b8daface85 Cr-Commit-Position: refs/heads/master@{#348617}

Patch Set 1 : #

Patch Set 2 #

Patch Set 3 : #

Patch Set 4 : full version #

Patch Set 5 : simple version #

Total comments: 40

Patch Set 6 : full version #

Total comments: 56

Patch Set 7 : full version #

Total comments: 10

Patch Set 8 : full version #

Patch Set 9 : rebase #

Total comments: 4

Patch Set 10 : full version #

Total comments: 40

Patch Set 11 : #

Total comments: 7

Patch Set 12 : rebase #

Patch Set 13 : rebase & solve tests #

Total comments: 7

Patch Set 14 : address comments #

Patch Set 15 : #

Patch Set 16 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+688 lines, -173 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/firstrun/ProfileDataCache.java View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +72 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/signin/AccountManagementFragment.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/signin/AccountTrackerService.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +181 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/signin/OAuth2TokenService.java View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +48 lines, -9 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/signin/SigninHelper.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/signin/SigninManager.java View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +42 lines, -62 lines 0 comments Download
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 6 chunks +55 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/signin/OAuth2TokenServiceTest.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/sync/SyncTestBase.java View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/android/profiles/profile_downloader_android.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -9 lines 0 comments Download
A chrome/browser/android/signin/account_tracker_service_android.h View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/android/signin/account_tracker_service_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/browser/android/signin/signin_manager_android.h View 5 1 chunk +1 line, -6 lines 0 comments Download
M chrome/browser/android/signin/signin_manager_android.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -25 lines 0 comments Download
M chrome/browser/policy/cloud/user_policy_signin_service_mobile.h View 1 2 3 4 5 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/policy/cloud/user_policy_signin_service_mobile.cc View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/signin/oauth2_token_service_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +20 lines, -5 lines 0 comments Download
M chrome/browser/signin/oauth2_token_service_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 13 chunks +112 lines, -32 lines 0 comments Download
M chrome/browser/signin/profile_oauth2_token_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/signin/core/browser/account_tracker_service.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M components/signin/core/browser/account_tracker_service.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 109 (69 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256283002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256283002/100001
5 years, 4 months ago (2015-08-10 20:07:57 UTC) #3
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 4 months ago (2015-08-10 20:07:59 UTC) #5
gogerald1
Hi Roger, Please review this draft version of my cl for Clank Gaia Id Migration. ...
5 years, 4 months ago (2015-08-11 22:52:35 UTC) #12
gogerald1
Hi, Here a simple solution of this problem. Pros: It is very simple without adding ...
5 years, 4 months ago (2015-08-12 00:54:57 UTC) #13
Roger Tawa OOO till Jul 10th
Thanks Ganggui! Some initial comments. https://codereview.chromium.org/1256283002/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/signin/AccountIdProvider.java File chrome/android/java/src/org/chromium/chrome/browser/signin/AccountIdProvider.java (right): https://codereview.chromium.org/1256283002/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/signin/AccountIdProvider.java#newcode72 chrome/android/java/src/org/chromium/chrome/browser/signin/AccountIdProvider.java:72: } What is the ...
5 years, 4 months ago (2015-08-12 15:28:47 UTC) #14
gogerald1
Hi Roger, Please help review this updated cl for Gaia Id migration on Clank. Thanks, ...
5 years, 4 months ago (2015-08-13 18:12:13 UTC) #18
Roger Tawa OOO till Jul 10th
Hi Ganggui, Here is a first pass review. Thanks for implementing as we discussed. https://codereview.chromium.org/1256283002/diff/310001/chrome/android/java/src/org/chromium/chrome/browser/firstrun/ProfileDataCache.java ...
5 years, 4 months ago (2015-08-14 15:01:22 UTC) #21
gogerald1
Hi Roger, Please review updated solution. Haven't tested it on Device. Will do it when ...
5 years, 4 months ago (2015-08-18 01:14:27 UTC) #33
Roger Tawa OOO till Jul 10th
Thanks Ganggui, a few comments below. https://codereview.chromium.org/1256283002/diff/540001/chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java File chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java (right): https://codereview.chromium.org/1256283002/diff/540001/chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java#newcode76 chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java:76: if (sPendingProfileDownloads == ...
5 years, 4 months ago (2015-08-19 14:37:26 UTC) #34
gogerald1
Hi Roger, Please review updated CL. I have tested it on device. https://codereview.chromium.org/1256283002/diff/540001/chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java File chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java ...
5 years, 4 months ago (2015-08-20 15:48:49 UTC) #35
Roger Tawa OOO till Jul 10th
lgtm Thanks Ganggui. https://codereview.chromium.org/1256283002/diff/600001/chrome/android/java/src/org/chromium/chrome/browser/signin/AccountTrackerService.java File chrome/android/java/src/org/chromium/chrome/browser/signin/AccountTrackerService.java (right): https://codereview.chromium.org/1256283002/diff/600001/chrome/android/java/src/org/chromium/chrome/browser/signin/AccountTrackerService.java#newcode67 chrome/android/java/src/org/chromium/chrome/browser/signin/AccountTrackerService.java:67: && !sForceRefreshed) { I don't think ...
5 years, 4 months ago (2015-08-21 20:29:15 UTC) #37
gogerald1
bartfab@chromium.org: Please review changes in chrome/browser/policy/* components/policy/* nyquist@chromium.org: Please review changes in chrome/android/* chrome/browser/android/* https://codereview.chromium.org/1256283002/diff/600001/chrome/android/java/src/org/chromium/chrome/browser/signin/AccountTrackerService.java ...
5 years, 4 months ago (2015-08-21 20:47:08 UTC) #39
nyquist
https://codereview.chromium.org/1256283002/diff/620001/chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java File chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java (right): https://codereview.chromium.org/1256283002/diff/620001/chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java#newcode65 chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java:65: private ArrayList<Profile> mProfiles; Could all these be final? https://codereview.chromium.org/1256283002/diff/620001/chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java#newcode70 ...
5 years, 3 months ago (2015-08-28 19:18:26 UTC) #41
gogerald1
Hi Tommy, please review updated CL, thanks! https://codereview.chromium.org/1256283002/diff/620001/chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java File chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java (right): https://codereview.chromium.org/1256283002/diff/620001/chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java#newcode65 chrome/android/java/src/org/chromium/chrome/browser/profiles/ProfileDownloader.java:65: private ArrayList<Profile> ...
5 years, 3 months ago (2015-08-28 21:38:47 UTC) #43
bartfab (slow)
chrome/browser/policy/* components/policy/* LGTM Sorry for the delay. I was traveling.
5 years, 3 months ago (2015-08-29 07:20:41 UTC) #44
nyquist
The code lgtm, but it feels like this core piece of the signin-infrastructure should be ...
5 years, 3 months ago (2015-09-02 21:18:16 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256283002/700001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256283002/700001
5 years, 3 months ago (2015-09-03 17:40:36 UTC) #48
chromium-reviews
Yes, definitely, integration tests will be introduced in the upcoming CL. On Wed, Sep 2, ...
5 years, 3 months ago (2015-09-03 17:43:53 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/65325) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 3 months ago (2015-09-03 17:44:04 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256283002/700001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256283002/700001
5 years, 3 months ago (2015-09-03 18:10:30 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256283002/800001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256283002/800001
5 years, 3 months ago (2015-09-05 02:18:06 UTC) #61
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/65626)
5 years, 3 months ago (2015-09-05 07:23:04 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256283002/800001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256283002/800001
5 years, 3 months ago (2015-09-05 13:30:07 UTC) #65
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/65666)
5 years, 3 months ago (2015-09-05 19:30:57 UTC) #67
gogerald1
Hi Tommy, I did few changes of this CL for tests, focus in below files. ...
5 years, 3 months ago (2015-09-10 23:43:25 UTC) #80
nyquist
Where did the change to AccountsChangedReceiver.java go? Also, please update the first line of the ...
5 years, 3 months ago (2015-09-11 00:42:53 UTC) #81
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256283002/1080001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256283002/1080001
5 years, 3 months ago (2015-09-12 00:56:21 UTC) #86
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/52047)
5 years, 3 months ago (2015-09-12 02:08:15 UTC) #88
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256283002/1080001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256283002/1080001
5 years, 3 months ago (2015-09-12 02:15:08 UTC) #90
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/94732) linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 3 months ago (2015-09-12 03:58:16 UTC) #92
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256283002/1080001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256283002/1080001
5 years, 3 months ago (2015-09-12 15:20:28 UTC) #94
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/52174) linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 3 months ago (2015-09-12 18:21:59 UTC) #96
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256283002/1080001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256283002/1080001
5 years, 3 months ago (2015-09-13 03:58:37 UTC) #98
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/69161)
5 years, 3 months ago (2015-09-13 09:59:59 UTC) #100
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256283002/1080001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256283002/1080001
5 years, 3 months ago (2015-09-13 17:47:17 UTC) #102
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/69216)
5 years, 3 months ago (2015-09-13 23:49:21 UTC) #104
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256283002/1080001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256283002/1080001
5 years, 3 months ago (2015-09-14 13:42:22 UTC) #106
commit-bot: I haz the power
Committed patchset #16 (id:1080001)
5 years, 3 months ago (2015-09-14 14:42:11 UTC) #107
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/63286f25d86e92e541e611092439d4b8daface85 Cr-Commit-Position: refs/heads/master@{#348617}
5 years, 3 months ago (2015-09-14 14:43:09 UTC) #108
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:32:27 UTC) #109
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/63286f25d86e92e541e611092439d4b8daface85
Cr-Commit-Position: refs/heads/master@{#348617}

Powered by Google App Engine
This is Rietveld 408576698