Reland "Migrate the Chrome OS device_sync service off of the mojo pref service"
This reverts commit 87fc2374. Relanding after fixing initialization in the chrome crash-and-restore case. The old code missed a call to OnProfileInitialized() in that crash-and-restore case. Instead of relying on chrome to call OnProfileInitialized() in all startup code paths, we now observe the IdentityManager for when the primary account information becomes available. Original change's description: > Revert "Migrate the Chrome OS device_sync service off of the mojo pref service" > > This reverts commit 671afa99. > > Reason for revert: Breaks proximity auth in the crash-and-restore > login flow (e.g. if chrome crashes during the session and logs you > back in automatically on restart). See crbug.com/1015215 > > Original change's description: > > Migrate the Chrome OS device_sync service off of the mojo pref service > > > > DeviceSyncService runs in the browser process on the UI thread. It can > > directly use the Profile's PrefService*. This simplifies the code, and > > will reduce the amount of work rockot@ has to do for Service Manager > > cleanup. > > > > Delete the DeviceSyncService mojo interface and implementation object. > > They primarily existed to support wiring up the mojo pref service. > > Instead, directly connect the DeviceSyncClientImpl to the backing > > DeviceSyncImpl. > > > > Explicitly initialize the DeviceSyncImpl when the user's profile is > > ready. The old code had startup timing dependencies that assumed that > > DeviceSyncImpl was created after IdentityManager had information about > > the primary profile. The new code instantiates the DeviceSyncImpl > > object earlier, and IdentityManager may not be ready yet. > > > > Bug: 977637, 1012941 > > Test: bots > > Change-Id: Ia32b687404e5b68980cb3aecd3003e6f7e48ffcd > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1849217 > > Commit-Queue: James Cook <jamescook@chromium.org> > > Reviewed-by: Greg Kerr <kerrnel@chromium.org> > > Reviewed-by: Josh Nohle <nohle@chromium.org> > > Reviewed-by: Scott Violet <sky@chromium.org> > > Reviewed-by: Ken Rockot <rockot@google.com> > > Cr-Commit-Position: refs/heads/master@{#706181} > > TBR=jamescook@chromium.org,sky@chromium.org,rockot@google.com,kerrnel@chromium.org,hansberry@chromium.org,nohle@chromium.org > > # Not skipping CQ checks because original CL landed > 1 day ago. > > Bug: 977637, 1012941 > Change-Id: Id6cf5f43aac57415dae266a7871c08e4954fa24b > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1865602 > Reviewed-by: James Cook <jamescook@chromium.org> > Commit-Queue: James Cook <jamescook@chromium.org> > Cr-Commit-Position: refs/heads/master@{#707000} TBR=jamescook@chromium.org,sky@chromium.org,rockot@google.com,kerrnel@chromium.org,hansberry@chromium.org,nohle@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 977637, 1012941 Change-Id: I1fff46240f3b34a7d1276edb7e79a264150ceb73 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1869576Reviewed-by:James Cook <jamescook@chromium.org> Reviewed-by:
Josh Nohle <nohle@chromium.org> Reviewed-by:
Ken Rockot <rockot@google.com> Commit-Queue: James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/master@{#708744}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment