Reland "[Longtasks] Fix buffering before observer"
This is a reland of c2d62d36. This is safe to reland because it got reverted due to the issue that has been fixed in https://bugs.chromium.org/p/chromium/issues/detail?id=1108676. Original change's description: > [Longtasks] Fix buffering before observer > > When we shipped longtasks with buffered flag, we forgot to remove a > check that would prevent longtask creation when there's no observer. > This CL fixes this and adds a test for this case. It also moves the > UseCounter to the observe() method. > > Bug: 1131385 > Change-Id: I2911b9ab044db7394bcf64f64b1e599959cbdc37 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2463594 > Reviewed-by: Steve Kobes <skobes@chromium.org> > Commit-Queue: Nicolás Peña Moreno <npm@chromium.org> > Cr-Commit-Position: refs/heads/master@{#816664} Bug: 1131385 Change-Id: I8640abc566fc7eceaf44e80c04d23ca59182542d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2491100Reviewed-by:Steve Kobes <skobes@chromium.org> Commit-Queue: Nicolás Peña Moreno <npm@chromium.org> Cr-Commit-Position: refs/heads/master@{#819832}
Showing
Please register or sign in to comment