• Mikel Astiz's avatar
    Avoid late keyed services with TestingProfile · 1ff3c501
    Mikel Astiz authored
    This patch migrates tests away from deprecated APIs and adopts
    TestingProfile::Builder for tests in
    /chrome/browser/bookmarks.
    
    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=sky@chromium.org
    
    Bug: 1106699
    Change-Id: I5e31d889a94318e01c31d38d8e5c1b5222977dcc
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2315353
    Auto-Submit: Mikel Astiz <mastiz@chromium.org>
    Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Scott Violet <sky@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#791316}
    1ff3c501
managed_bookmark_service_unittest.cc 13.6 KB