commit | 417136d6b39727ab8a8f9ba4e80f593db4e8510c | [log] [tgz] |
---|---|---|
author | Tommy Li <tommycli@chromium.org> | Thu Dec 09 21:10:23 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Dec 09 21:10:23 2021 |
tree | 57fff5a0f6333326d3e9ff5a70c299c5a9a2e11c | |
parent | 813897a50406ebbe0193eaf4bb32ea729069491a [diff] |
[optimization_guide] Add locale filtering to `models_to_execute` This CL adds locale filtering capability to the Finch feature parameter `models_to_execute_v2`, and also adds a unit test. It still supports the old `models_to_execute` parameter too. The filtering works as below: The parameter value delimits models by commas, and per-model locale restrictions by colon. For example: FOO_MODEL:en:es-ES,BAR_MODEL,BAZ_MODEL:zh-TW - FOO_MODEL is restricted to English language users from any locale, and Spanish language users from the Spain es-ES locale. - BAR_MODEL is unrestricted by locale, and any user may load it. - BAZ_MODEL is restricted to zh-TW only, so zh-CN users won't load it. Bug: 1275325 Change-Id: I5c4739bfb5a596756583dbefea04c24c04f429fb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3324842 Reviewed-by: Sophie Chang <sophiechang@chromium.org> Reviewed-by: Jungshik Shin <jshin@chromium.org> Commit-Queue: Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/main@{#950257}
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.