DevTools: avoid OTR profile use after free in ~Brwoser
DevToolsBrowserContextManager::OnBrowserRemoved is called from Browser destructor and the destructor acesses the profile after notifying its observers. If the profile is deleted synchronously in the DevTools' observer it will cause use after free. This change restores the logic changed in https://chromium-review.googlesource.com/c/chromium/src/+/2141097 Bug: 1075664 Change-Id: I02b924d8a45fa6a74fdc2ccc2647033f5f86d904 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2168515Reviewed-by:Ramin Halavati <rhalavati@chromium.org> Reviewed-by:
Peter Marshall <petermarshall@chromium.org> Reviewed-by:
Yang Guo <yangguo@chromium.org> Commit-Queue: Yury Semikhatsky <yurys@chromium.org> Cr-Commit-Position: refs/heads/master@{#763413}
Showing
Please register or sign in to comment