• Clark DuVall's avatar
    Fix flakiness in SystemDisplayApiTest.SetDisplay · d96e2e6a
    Clark DuVall authored
    RulesRegistryService posts tasks to the IO thread which access
    ExtensionWebRequestEventRouter::GetInstance().
    ExtensionWebRequestEventRouter accesses ExtensionsAPIClient::Get(),
    which used to be destroyed before the tasks could run in some
    situations. This change moves destruction of ExtensionsAPIClient
    to ShellBrowserMainParts::PostDestroyThreads(), which should be
    safe since tasks will no longer run at that time.
    
    Bug: 866904
    Change-Id: I974d474d08ff9d7c0c727a7c95d26f04363ce7f0
    Reviewed-on: https://chromium-review.googlesource.com/1194579
    Commit-Queue: Clark DuVall <cduvall@chromium.org>
    Reviewed-by: default avatarKaran Bhatia <karandeepb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#587343}
    d96e2e6a
shell_browser_main_parts.cc 11.3 KB