Avoid late keyed services with TestingProfile
This patch migrates tests away from deprecated APIs and adopts TestingProfile::Builder for tests in /chrome/browser/android/signin. Rationale: creating or overriding keyed services after the profile has been created is problematic and known to cause hard-to-debug test flakiness, because it bypasses BrowserContextDependencyManager and often leading to use-after-free. This CL was uploaded by git cl split. R=bsazonov@chromium.org Bug: 1106699 Change-Id: Ifa14602b1dab9f9c965e7e4dd55fac20f5cd68d2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2315154 Commit-Queue: Mikel Astiz <mastiz@chromium.org> Auto-Submit: Mikel Astiz <mastiz@chromium.org> Reviewed-by:Boris Sazonov <bsazonov@chromium.org> Cr-Commit-Position: refs/heads/master@{#792187}
Showing
Please register or sign in to comment