Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Issue 2954023002: Fixing SelectionPopupController.isInsertion() race condition (Closed)

Created:
3 years, 6 months ago by amaralp
Modified:
3 years, 6 months ago
CC:
agrieve+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

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} Committed: https://chromium.googlesource.com/chromium/src/+/7bd2df286b3779e6311c214e3054260870a18c48

Patch Set 1 #

Patch Set 2 : Renaming isInsertion to isInsertionForTesting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java View 1 5 chunks +6 lines, -6 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreSelectionTest.java View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
amaralp
PTAL
3 years, 6 months ago (2017-06-23 00:35:45 UTC) #4
amaralp
On 2017/06/23 at 00:35:45, amaralp wrote: > PTAL Renamed to isInsertionForTesting
3 years, 6 months ago (2017-06-23 00:56:22 UTC) #5
aelias_OOO_until_Jul13
lgtm
3 years, 6 months ago (2017-06-23 01:24:34 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2954023002/20001
3 years, 6 months ago (2017-06-23 01:25:23 UTC) #8
commit-bot: I haz the power
3 years, 6 months ago (2017-06-23 02:16:17 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7bd2df286b3779e6311c214e3054...

Powered by Google App Engine
This is Rietveld 408576698