[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/+/2463594Reviewed-by:Steve Kobes <skobes@chromium.org> Commit-Queue: Nicolás Peña Moreno <npm@chromium.org> Cr-Commit-Position: refs/heads/master@{#816664}
Showing
Please register or sign in to comment