-
Daniel Murphy authored
This change fixes lifetime issues where the mojo service, created with mojo::MakeStrongBinding, stayed alive after the Profile, AppCache service, and things like the URLRequestContext have been destroyed. This is a little scary, as the AppCacheDispatcherHost and general AppCache code holds lots of raw pointers, and I'm sure this was the cause of other strange bugs. Prior to r522566 (when IPCs were converted to Mojo), the dispatcher object was owned by the RenderProcessHostImpl, and created during message filter creation. The filters were explicitly destroyed, which made the lifetime deterministic. Bug: 800391 Change-Id: Ie56839de3202be5c63080cf31e7a1391eb7ce405 Reviewed-on: https://chromium-review.googlesource.com/922919Reviewed-by:
Marijn Kruisselbrink <mek@chromium.org> Reviewed-by:
John Abd-El-Malek <jam@chromium.org> Reviewed-by:
Victor Costan <pwnall@chromium.org> Commit-Queue: Daniel Murphy <dmurph@chromium.org> Cr-Commit-Position: refs/heads/master@{#537144}
00e3063e