-
Notifications
You must be signed in to change notification settings - Fork 879
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5802 from brave/maxk-issue-10160-1.11.x
Fixes crash in brave://settings/content/all (1.11.x).
- Loading branch information
Showing
2 changed files
with
16 additions
and
9 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
12 changes: 12 additions & 0 deletions
12
patches/chrome-browser-ui-webui-site_settings_helper.cc.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/chrome/browser/ui/webui/site_settings_helper.cc b/chrome/browser/ui/webui/site_settings_helper.cc | ||
index 9de4ee74b87ccd0502f2f77438cfe5fecbb23fec..860835e9b3057276fc99a8e4048598d6e2e2fd49 100644 | ||
--- a/chrome/browser/ui/webui/site_settings_helper.cc | ||
+++ b/chrome/browser/ui/webui/site_settings_helper.cc | ||
@@ -371,6 +371,7 @@ bool HasRegisteredGroupName(ContentSettingsType type) { | ||
} | ||
|
||
ContentSettingsType ContentSettingsTypeFromGroupName(const std::string& name) { | ||
+ BRAVE_SITE_SETTINGS_HELPER_CONTENT_SETTINGS_TYPE_FROM_GROUP_NAME | ||
for (size_t i = 0; i < base::size(kContentSettingsTypeGroupNames); ++i) { | ||
if (name == kContentSettingsTypeGroupNames[i].name) | ||
return kContentSettingsTypeGroupNames[i].type; |