bluetooth: Fix crash when accepting location permission
http://crrev.com/2369673003 introduced code to close the chooser when the window looses focus. This works great for when the user switches apps but it sadly causes the chooser to get closed when the permission prompt opens up. Then when the user accepts the permission request chrome crashes because the chooser was closed. Checks if the chooser is still opened before restarting the scan. Changes the testing framework to simulate a focus change when requesting permission and adds asserts to make sure native functions are not being called after the native object has been destroyed. BUG=661770 Review-Url: https://codereview.chromium.org/2476563002 Cr-Commit-Position: refs/heads/master@{#430197}
Showing
Please register or sign in to comment