зеркало из https://github.com/electron/electron.git
fix: -Wunsafe-buffer-usage warnings in ElectronAccessibilityUI ctor (#44055)
fix: -Wunsafe-buffer-usage warnings in ElectronAccessibilityUI constructor
This commit is contained in:
Родитель
6f88f0c795
Коммит
06bce8166b
|
@ -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),
|
||||
|
|
Загрузка…
Ссылка в новой задаче