commit | 1d1311d341796b4d268bf3d4637f88324e190e1d | [log] [tgz] |
---|---|---|
author | Takashi Toyoshima <toyoshim@chromium.org> | Thu May 19 17:27:22 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 19 17:27:22 2022 |
tree | 1f82418a0c2d1d7e9801f3f2272b10b69034a4db | |
parent | 9d773560f184431a0d9cf4804cd765b97386967f [diff] |
PageLoadMetrics: Make TranslatePLMO support Prerender2 This patch introduces `is_in_primary_page_` flag to track if the observer is bound with the primary page. This is set at `OnStart` and `DidActivatePrerenderedPage`, and `TranslateMetricsLogger::OnPageLoadStart` is called at both places after the flag is set. This patch also modifies the mock in unit tests to initialize SetUkmSourceId's expectation. This is for suppressing warnings that have existed before this change. Bug: 1317494 Change-Id: I95a64ea5635dd8297825305f9bd6c85d6328b2fc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3608048 Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org> Reviewed-by: Kouhei Ueno <kouhei@chromium.org> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Cr-Commit-Position: refs/heads/main@{#1005299}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
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.
If you found a bug, please file it at https://crbug.com/new.