Fix relative lifetime of URLLoaderFactory vs URLLoaders.
The code assumes that URLLoaderFactory is guaranteed to outlive URLLoader (i.e. this is why URLLoader::factory_params_ is a raw pointer). This CL makes sure this assumption holds for the factory and loaders owned by CORSURLLoaderFactory: |loaders_| need to be destroyed *before* destroying |network_loader_factory_|. Bug: 906305 Change-Id: I61195be425c8b21a725676de4d44b1611f443410 Reviewed-on: https://chromium-review.googlesource.com/c/1343282Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Cr-Commit-Position: refs/heads/master@{#610459}
Showing
Please register or sign in to comment