forked from chromium/chromium
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
M106 merge: Fix the website metrics issue when navigate to inactivate…
…d tab. This CL is the follow up CL for CL:3836214. Adding tests to verify the website metrics. Two issues are fixed in this CL: 1. When updating the url info, not only checking the browser window's activated statue, but also checks the tab's activated status, because when tabs are inactivated, it could be updated as well. 2. When saving the url info to the pref, check running_time_in_two_hours, because even if the running_time_in_five_minutes for the tab is zero, we should still save the url in the pref, as the UKM is recorded each 2 hours. BUG=1355259 (cherry picked from commit 830b2e3) Change-Id: Ia77f9f8b1ece081540df002c22b305f531918cae Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3841308 Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Reviewed-by: Dominick Ng <dominickn@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1038036} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3855496 Commit-Queue: Tim Sergeant <tsergeant@chromium.org> Reviewed-by: Tim Sergeant <tsergeant@chromium.org> Auto-Submit: Nancy Wang <nancylingwang@chromium.org> Cr-Commit-Position: refs/branch-heads/5249@{#94} Cr-Branched-From: 4f7bea5-refs/heads/main@{#1036826}
- Loading branch information
Nancy Wang
authored and
Chromium LUCI CQ
committed
Aug 25, 2022
1 parent
160851e
commit f5217c6
Showing
2 changed files
with
157 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters