Port ProfileSyncServiceBundle and its consumers to using IdentityTestEnvironment |
|||||
Issue descriptionProfileSyncServiceBundle (in //components/browser_sync/profile_sync_test_util.h) constructs and exposes SigninManager, ProfileOAuth2TokenService, and IdentityManager objects. It should instead just construct an IdentityManager object via IdentityTestEnvironment and expose the IdentityTestEnvironment object for its consumers to interact with. Getting there from here is a bit tricky as there's quite a bit of direct usage; converting it all in one go (required to use IdentityTestEnvironment) would be a lot to bite off, but //services/identity/public/cpp/identity_test_utils.h doesn't currently expose all the necessary functionality. The blocking bug tracks determining a migration path.
,
Oct 12
Work on this bug can start now, following the example of the CL from c#1.
,
Oct 25
,
Oct 26
,
Oct 31
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/48141d2b252e5470cda294466e6d7e4d47192b48 commit 48141d2b252e5470cda294466e6d7e4d47192b48 Author: Mario Sanchez Prada <mario@igalia.com> Date: Wed Oct 31 09:37:10 2018 Port ProfileSyncServiceBundle's consumers to using IdentityTestEnvironment Bug: 886600 Change-Id: Idd339ae91bffeeceaeee929accde53fedc9f804d Reviewed-on: https://chromium-review.googlesource.com/c/1299162 Reviewed-by: Mihai Sardarescu <msarda@chromium.org> Reviewed-by: Marc Treib <treib@chromium.org> Commit-Queue: Mario Sanchez Prada <mario@igalia.com> Cr-Commit-Position: refs/heads/master@{#604189} [modify] https://crrev.com/48141d2b252e5470cda294466e6d7e4d47192b48/components/browser_sync/profile_sync_service_startup_unittest.cc [modify] https://crrev.com/48141d2b252e5470cda294466e6d7e4d47192b48/components/browser_sync/profile_sync_service_unittest.cc
,
Oct 31
I believe this was the last bit needed here (but please reopen if that's not the case) => Fixed
,
Nov 15
Hi Mario, Apologies for the greatly-delayed reply here! I think that there's more work required here: We want to completely eliminate ProfileSyncServiceBundle's knowledge of SigninManager/ProfileOAuth2TokenService. It looks like that hasn't happened on ToT, e.g. https://cs.chromium.org/chromium/src/components/browser_sync/profile_sync_test_util.h?q=ProfileSyncServiceBu&sq=package:chromium&g=0&l=132 Thanks!
,
Nov 15
Oops... right! Working on this now then, sorry for overlooking those bits.
,
Nov 15
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/c893a340e9c7ddfae4878b6e8cedbd4a86abd45e commit c893a340e9c7ddfae4878b6e8cedbd4a86abd45e Author: Mario Sanchez Prada <mario@igalia.com> Date: Thu Nov 15 18:05:29 2018 Move ProfileSyncServiceBundle away from low-level signin related objects Remove any knowledge of AccountTrackerService, FakeSiginManager[Base], FakeProfileOAuth2TokenService and FakeGaiaCookieManagerService from ProfileSyncServiceBundle, and depend solely on IdentityTestEnvironment. Bug: 886600 Change-Id: I268bc85d70c164efa3b9650565b9de13c98f4b4b Reviewed-on: https://chromium-review.googlesource.com/c/1337618 Reviewed-by: Marc Treib <treib@chromium.org> Reviewed-by: Colin Blundell <blundell@chromium.org> Commit-Queue: Mario Sanchez Prada <mario@igalia.com> Cr-Commit-Position: refs/heads/master@{#608433} [modify] https://crrev.com/c893a340e9c7ddfae4878b6e8cedbd4a86abd45e/components/browser_sync/profile_sync_service_unittest.cc [modify] https://crrev.com/c893a340e9c7ddfae4878b6e8cedbd4a86abd45e/components/browser_sync/profile_sync_test_util.cc [modify] https://crrev.com/c893a340e9c7ddfae4878b6e8cedbd4a86abd45e/components/browser_sync/profile_sync_test_util.h
,
Nov 15
CL landed, moving back to fixed then... |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by bugdroid1@chromium.org
, Oct 12