-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
{M103 PICK} [Fix UserAgentReduction Policy] (2) Fix GetProductAndVersion
This resolves an issue where the user agent reduction enterprise policy is not respected due to GetProductAndVersion only checking the feature. The policy is propagated from ChromeContentBrowserClient::GetUserAgentBasedOnPolicy downward. The specific issue is tested in UserAgentUtilsTest::GetProductAndVersion under item 4c (policy force disabled overrides the feature being enabled). This CL is part of a series: (1) Make ForceMajorVersionToMinorPosition a class enum (2) Fix GetProductAndVersion (cherry picked from commit 8bb92c3) Bug: 1330588 Change-Id: I6f2dfcf8ea9e9c217c1562f4efca2df24de613f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3684269 Auto-Submit: Ari Chivukula <arichiv@chromium.org> Reviewed-by: Victor Tan <victortan@chromium.org> Commit-Queue: Ari Chivukula <arichiv@chromium.org> Quick-Run: Ari Chivukula <arichiv@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1010140} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3687390 Cr-Commit-Position: refs/branch-heads/5060@{#636} Cr-Branched-From: b83393d-refs/heads/main@{#1002911}
- Loading branch information
Showing
8 changed files
with
250 additions
and
77 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
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
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
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
Oops, something went wrong.