WebUI: prevent WebContent to hold an invalid pointer.
A ConstrainedWebDialogBase creates and own a WebContent. For various reasons, it stores a pointer to itself inside the WebContent. The problem was that the lifetime of the WebContent may exceed the one of ConstrainedWebDialogBase when |release_contents_on_close_| is set to false. The pointer becomes invalid. BUG=704327 Review-Url: https://codereview.chromium.org/2798583002 Cr-Commit-Position: refs/heads/master@{#463318}
Showing
Please register or sign in to comment