• Reilly Grant's avatar
    Move signin::ProxyingURLLoaderFactory ownership to ResourceContext · cc22e605
    Reilly Grant authored
    This takes a hint from r588692 and moves ownership of the
    ProxyingURLLoaderFactory objects a user data object that hangs off of
    the content::ResourceContext. This prevents these objects from outliving
    this object on the IO thread. The previous ownership model was open to a
    race condition between the destruction of the BrowserContext keyed
    service ProxyingURLLoaderFactoryManager on the UI thread and the tasks
    posted to the IO thread to destroy each ProxyingURLLoaderFactory. These
    would be scheduled after the task to destroy the ResourceContext.
    
    Change-Id: I600b1604526b644c3ac9e010d1cb82f4b3740925
    Reviewed-on: https://chromium-review.googlesource.com/1211913Reviewed-by: default avatarClark DuVall <cduvall@chromium.org>
    Reviewed-by: default avatarDavid Roger <droger@chromium.org>
    Commit-Queue: Reilly Grant <reillyg@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#589522}
    cc22e605
header_modification_delegate_impl.cc 2.16 KB