fix: -Wunsafe-buffer-usage warnings in ElectronAccessibilityUI ctor (#44055)

fix: -Wunsafe-buffer-usage warnings in ElectronAccessibilityUI constructor
This commit is contained in:
Charles Kerr 2024-10-01 12:05:46 -05:00 committed by GitHub
parent 6f88f0c795
commit 06bce8166b
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),