S13nServiceWorker: Save the ptr to non_network_loader_factory.
ServiceWorkerNewScriptLoader was using the ptr then letting it fall out of scope. ServiceWorkerScriptLoaderFactory still held a ptr to the factory which is strongly bound, so the factory shouldn't die anyway, but it seems safer if ServiceWorkerNewScriptLoader holds the cloned ptr too throughout its life. I'm not sure if this is actually needed for ExtensionURLLoaderFactory, but it seems possible to write a factory that would fail if the cloned ptr falls out of scope. Bug: 836129 Change-Id: Id7b4ab9d72bb758fe639e963e2747f915e67aea3 Reviewed-on: https://chromium-review.googlesource.com/1029271Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#553929}
Showing
Please register or sign in to comment