From ce9f15105470a458330b7baeaf6ca4a59107e387 Mon Sep 17 00:00:00 2001 From: Brandon-T Date: Thu, 12 Dec 2024 13:39:20 -0500 Subject: [PATCH] [iOS] - Fix brave://flags crash (#26986) * Add minimal amount of resources for iOS's brave://flags to not crash --- ui/webui/resources/sources.gni | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/webui/resources/sources.gni b/ui/webui/resources/sources.gni index 7493bff2b23f..df17f0e996d2 100644 --- a/ui/webui/resources/sources.gni +++ b/ui/webui/resources/sources.gni @@ -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.