Fixing SelectionPopupController.isInsertion() race condition
After my context menu refactor (crrev.com/2785853002), SelectionPopupController.createActionMenu() and the setting of mIsInsertion happened on two different threads. This lead to a race-condition in SelectionPopupController.createActionMenu() since it relied on isInsertion(). This CL removes the race-condition by relying on hasSelection() instead of isInsertion(). BUG=730996 Review-Url: https://codereview.chromium.org/2954023002 Cr-Commit-Position: refs/heads/master@{#481789}
Showing
Please register or sign in to comment