Split out the extensions gin::Runner implementation into a separate class.
The gin::Runner should be destroyed when the JS context is so that its weak pointers are invalidated and any outstanding callbacks that interact with the JS context can detect its destruction. Currently, ScriptContext implements gin::Runner but is not immediately destroyed when the JS context is. This CL moves this gin::Runner implementation into a separate class which is destroyed when the ScriptContext is invalidated. Review URL: https://codereview.chromium.org/831423005 Cr-Commit-Position: refs/heads/master@{#311358}
Showing
Please register or sign in to comment