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:
parent
6074f7ed31
commit
dd8c3b8dd9
1 changed files with 1 additions and 2 deletions
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue