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 <charles@charleskerr.com>
This commit is contained in:
trop[bot] 2024-10-01 16:14:46 -05:00 committed by GitHub
parent 6074f7ed31
commit dd8c3b8dd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -359,8 +359,7 @@ ElectronAccessibilityUI::ElectronAccessibilityUI(content::WebUI* web_ui)
// Add required resources. // Add required resources.
html_source->UseStringsJs(); html_source->UseStringsJs();
html_source->AddResourcePaths( html_source->AddResourcePaths(kAccessibilityResources);
base::make_span(kAccessibilityResources, kAccessibilityResourcesSize));
html_source->SetDefaultResource(IDR_ACCESSIBILITY_ACCESSIBILITY_HTML); html_source->SetDefaultResource(IDR_ACCESSIBILITY_ACCESSIBILITY_HTML);
html_source->SetRequestFilter( html_source->SetRequestFilter(
base::BindRepeating(&ShouldHandleAccessibilityRequestCallback), base::BindRepeating(&ShouldHandleAccessibilityRequestCallback),