commit | b5517d135f203a52e3476a12157d8e89450ac876 | [log] [tgz] |
---|---|---|
author | Hajime Hoshi <hajimehoshi@chromium.org> | Thu Aug 13 09:20:37 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Aug 13 09:20:37 2020 |
tree | 270d7643802d9652d564ad4ad28aae05a8ec4582 | |
parent | 540da41dff5f31c05e0c9a99fd56f5d744982447 [diff] |
BackForwardCache: Fix PaintTimings to record bfcache timings correctly SetFirstPaintAfterBackForwardCacheRestoreSwap is called once when OnRestoredFromBackForwardCache is called once, by registering the callback. When OnRestoredFromBackForwardCache was called twice very quickly, two SetFirstPaintAfterBackForwardCacheRestoreSwap might try to set the same end of the timing vector, which was wrong update. This CL fixes this issue by specifying an index at the callback closure, instead of always updating the end of the timing vector. Bug: 1099395 Change-Id: Ic56d2c600d5f08cd7a71e4c03ac84a82a6925115 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2346690 Commit-Queue: Hajime Hoshi <hajimehoshi@chromium.org> Reviewed-by: Alexander Timin <altimin@chromium.org> Reviewed-by: Nicolás Peña Moreno <npm@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#797606}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.