• Mikel Astiz's avatar
    Avoid late keyed services with TestingProfile · a862f943
    Mikel Astiz authored
    This patch migrates tests away from deprecated APIs and adopts
    TestingProfile::Builder for tests in
    /chrome/browser/engagement.
    
    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=calamity@chromium.org
    
    Bug: 1106699
    Change-Id: Ia256324372fffe91b7dd7bda603faea66fbbb666
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2316361
    Auto-Submit: Mikel Astiz <mastiz@chromium.org>
    Reviewed-by: default avatarcalamity <calamity@chromium.org>
    Commit-Queue: calamity <calamity@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#792498}
    a862f943
important_sites_util_unittest.cc 19.6 KB