From c730f2b0729b4332c3263c0014e82641bf6a6b5b Mon Sep 17 00:00:00 2001 From: Brandon Date: Wed, 11 Dec 2024 15:46:43 -0500 Subject: [PATCH] Add minimal amount of resources for iOS's brave://flags to not crash --- ui/webui/resources/sources.gni | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ui/webui/resources/sources.gni b/ui/webui/resources/sources.gni index 7493bff2b23f..c1fab100145d 100644 --- a/ui/webui/resources/sources.gni +++ b/ui/webui/resources/sources.gni @@ -13,16 +13,22 @@ brave_resources_extra_grdps = [] brave_resources_extra_grdps_deps = [] # ios does not need any static resources -if (!is_ios) { +if (is_ios) { + brave_resources_extra_grdps += [ + "$brave_resources_extra_grdps_path/brave_static_resources.grdp", + "$root_gen_dir/brave/web-ui-leo/leo.grdp", + ] +} else { 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" ] } +brave_resources_extra_grdps_deps += [ "//brave/ui/webui/resources:grdp" ] + # At the moment, all non-static resources are only required for polymer WebUI. # This could change and, when it does, the `include_polymer` conditional can be removed # here and the one in //brave/ui/webui/resources/BUILD.gn be relied on to only add