DescriptionFixing 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}
Committed: https://chromium.googlesource.com/chromium/src/+/7bd2df286b3779e6311c214e3054260870a18c48
Patch Set 1 #Patch Set 2 : Renaming isInsertion to isInsertionForTesting #
Messages
Total messages: 11 (6 generated)
|