forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FileSystemConnector] Fix crash in service_settings.cc for unexpected…
… policy format. When the disable list is empty and the nable list has non-empty url_list but empty mime_types list, enabled_patterns_settings_ ended up not getting any filter added (since the policy essentially means to apply this rule to no mime_types at all) and fails DCHECK(!enabled_patterns_settings_.empty()). ~ Replace the DCHECK() with returning false and logging the error at where it's called. + Add unit test to ensure that this will result in a dont-reroute decision. Bug: 1236665 Change-Id: Iadffbd5e0de3f2b5723bf32783d214aa59414c40 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3076669 Commit-Queue: Alice Gong <alicego@google.com> Reviewed-by: Roger Tawa <rogerta@chromium.org> Cr-Commit-Position: refs/heads/master@{#910428}
- Loading branch information
Alice Gong
authored and
Chromium LUCI CQ
committed
Aug 10, 2021
1 parent
7cc2b33
commit 485eacc
Showing
4 changed files
with
101 additions
and
45 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