commit | 6eb34a1a2b3d30c0e5a57670dffa2eb65609559d | [log] [tgz] |
---|---|---|
author | thefrog <thefrog@chromium.org> | Mon Aug 07 14:17:05 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Aug 07 14:17:05 2023 |
tree | c2325852e3f58d2e81e1e67a2cd3b95c463ff112 | |
parent | 355fc9cb55a63dc4171747734331fc1cec0f708b [diff] |
Fix logging of SafeBrowsing.RT.LocalMatch.Result.{IsMainframe} for iOS Since `url_lookup_service_metric_suffix` is empty for iOS, the histogram SafeBrowsing.RT.LocalMatch.Result.{IsMainframe} was being logged twice. This CL avoids the second log when the suffix is empty. Other changes in this CL: - URT test cases now validate the SafeBrowsing.RT.LocalMatch.Result.* metrics. - A new test case is added for an URT non-mainframe lookup. - A new test case is added for the specific bug (suffix = empty). - The test method CreateSafeBrowsingUrlChecker is refactored to take in a struct for optional args instead of individual optional parameters. This is so that test cases don't need to fill in the default values for irrelevant params when they want to set the value for another optional param. Change-Id: I38cf42c4826599137edf4e96071882b072e29b40 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4753852 Reviewed-by: Xinghui Lu <xinghuilu@chromium.org> Commit-Queue: thefrog <thefrog@chromium.org> Cr-Commit-Position: refs/heads/main@{#1180275}
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.