-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Topics] fix crashes in BrowsingTopicsCalculator
Fix 2 issues: - When the classification succeeded in general, the specific topics for host (BatchAnnotationResult::topics()) could still be nullopt. Adding the check for nullopt. - We should not use host_topics_map.at(host) as there could be no topics for a host. Bug: 1321140 Change-Id: I04bd26f79fa0d447109f8864e4ece07be16d6d5f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3615972 Commit-Queue: Yao Xiao <yaoxia@chromium.org> Reviewed-by: Josh Karlin <jkarlin@chromium.org> Cr-Commit-Position: refs/heads/main@{#997765}
- Loading branch information
1 parent
072f5ed
commit 2a7e70e
Showing
2 changed files
with
39 additions
and
6 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