-
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.
Refactor CheckUrlForHighConfidenceAllowlist to return only true or false
The local allowlist only contains full hashes, so this CL eliminates the code paths that are currently handling a hash-prefix match, which would trigger a full hash check ping. This involves: - Returning true where previously we returned MATCH, returning false otherwise, and never running the full hash check. - Removing the OnCheckUrlForHighConfidenceAllowlist function from SafeBrowsingDatabaseManager::Client, since that is only useful for cases where the database manager responds to the client asynchronously. - Removing ClientCallbackType::CHECK_HIGH_CONFIDENCE_ALLOWLIST and the |client| parameter from the CheckUrlForHighConfidenceAllowlist function. Reading from the database still requires a PendingCheck, so just like HandleUrlSynchronously, we pass through ClientCallbackType::CHECK_OTHER for the callback type and nullptr for the client. Separately, this also includes: - Removing some lingering high-confidence allowlist code from the AllowlistCheckerClient, which had already previously had the high- confidence allowlist checking functionality removed. - Changing SafeBrowsing.RT.LocalMatch.Result histogram ownership per vakh@'s suggestion. Bug: 1372485 Change-Id: I9f5b651ad9ae43a12c33f16f1bb702618265f45e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4032247 Commit-Queue: thefrog <thefrog@chromium.org> Reviewed-by: Xinghui Lu <xinghuilu@chromium.org> Cr-Commit-Position: refs/heads/main@{#1073589}
- Loading branch information
thefrog
authored and
Chromium LUCI CQ
committed
Nov 18, 2022
1 parent
2b33039
commit ef422ce
Showing
15 changed files
with
120 additions
and
277 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
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.