Make LayoutManager observer notification async
The process of supplying OverviewModeBehavior is now async to prevent re-entrancy in OneshotSupplier (as of https://crrev.com/c/2321067). Since observer notification in LayoutManager is synchronous, this creates a race condition where observers miss an update because an event (e.g. a touch event, as in the linked bug) queued before the call to set() can trigger synchronous observer notification before observers can add themselves. Bug: 1129783 Change-Id: Ia482a109576539d54f171950468e490972e72bc1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2418981Reviewed-by:David Trainor <dtrainor@chromium.org> Reviewed-by:
Xi Han <hanxi@chromium.org> Commit-Queue: Patrick Noland <pnoland@chromium.org> Cr-Commit-Position: refs/heads/master@{#809386}
Showing
Please register or sign in to comment