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.
Fix a crash in ContentSettingsTypeFromGroupName()
The base::StringPiece::operator== causes a conversion of nullptr to a base::StringPiece, which CHECK()s. Make it fall through to NOTREACHED() instead. Also fix braces around if(){} and a range loop as per newer code style guidelines. Bug: 1382370 Change-Id: I60df24e522c5270f6d6cd93d9e3e7235b04887d7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4236624 Reviewed-by: Christian Dullweber <dullweber@chromium.org> Commit-Queue: Martin Šrámek <msramek@chromium.org> Cr-Commit-Position: refs/heads/main@{#1110294}
- Loading branch information
Showing
3 changed files
with
34 additions
and
15 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