Skip to content

Commit

Permalink
[iOS] - Fix brave://flags crash (#26986)
Browse files Browse the repository at this point in the history
* Add minimal amount of resources for iOS's brave://flags to not crash
  • Loading branch information
Brandon-T authored Dec 12, 2024
1 parent b227150 commit ce9f151
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/webui/resources/sources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@

brave_resources_extra_grdps_path = "$root_gen_dir/brave/ui/webui/resources"

brave_resources_extra_grdps = []
brave_resources_extra_grdps = [
"$brave_resources_extra_grdps_path/brave_static_resources.grdp",
"$root_gen_dir/brave/web-ui-leo/leo.grdp",
]

brave_resources_extra_grdps_deps = []
brave_resources_extra_grdps_deps = [ "//brave/ui/webui/resources:grdp" ]

# ios does not need any static resources
# ios does not need font or icon resources
if (!is_ios) {
brave_resources_extra_grdps += [
"$brave_resources_extra_grdps_path/brave_fonts_resources.grdp",
"$brave_resources_extra_grdps_path/brave_static_resources.grdp",
"$brave_resources_extra_grdps_path/brave_icons_resources.grdp",
"$root_gen_dir/brave/web-ui-leo/leo.grdp",
]
brave_resources_extra_grdps_deps += [ "//brave/ui/webui/resources:grdp" ]
}

# At the moment, all non-static resources are only required for polymer WebUI.
Expand Down

0 comments on commit ce9f151

Please sign in to comment.