From dd8c3b8dd998983cdd93fe6d620c789c18ca9e0f Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:14:46 -0500 Subject: [PATCH] fix: -Wunsafe-buffer-usage warnings in ElectronAccessibilityUI ctor (#44074) fix: -Wunsafe-buffer-usage warnings in ElectronAccessibilityUI constructor Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr --- shell/browser/ui/webui/accessibility_ui.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shell/browser/ui/webui/accessibility_ui.cc b/shell/browser/ui/webui/accessibility_ui.cc index f21d50ee1370..67fdc50c97e4 100644 --- a/shell/browser/ui/webui/accessibility_ui.cc +++ b/shell/browser/ui/webui/accessibility_ui.cc @@ -359,8 +359,7 @@ ElectronAccessibilityUI::ElectronAccessibilityUI(content::WebUI* web_ui) // Add required resources. html_source->UseStringsJs(); - html_source->AddResourcePaths( - base::make_span(kAccessibilityResources, kAccessibilityResourcesSize)); + html_source->AddResourcePaths(kAccessibilityResources); html_source->SetDefaultResource(IDR_ACCESSIBILITY_ACCESSIBILITY_HTML); html_source->SetRequestFilter( base::BindRepeating(&ShouldHandleAccessibilityRequestCallback),