Revert "Make LayoutManager observer notification async"
This reverts commit 9183c032. Reason for revert: https://ci.chromium.org/p/chromium/builders/ci/Lollipop%20Phone%20Tester Original change's description: > 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/+/2418981 > Reviewed-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} TBR=dtrainor@chromium.org,hanxi@chromium.org,pnoland@chromium.org Change-Id: Ic1028b99d727da8bf2b85955745068de1eaa45bd No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 1129783 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2426724Reviewed-by:Gang Wu <gangwu@chromium.org> Commit-Queue: Gang Wu <gangwu@chromium.org> Cr-Commit-Position: refs/heads/master@{#809787}
Showing
Please register or sign in to comment