refactor: remove unnecessary const_cast (#46543)

refactor: remove unnecessary const_cast

unnecessary since July 2019 in 50b9c70
This commit is contained in:
Charles Kerr 2025-04-08 12:58:28 -05:00 committed by GitHub
parent 636cbc19ac
commit 9069542d0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,7 @@ content::WebUI::TypeID ElectronWebUIControllerFactory::GetWebUIType(
if (const std::string_view host = url.host_piece();
host == chrome::kChromeUIDevToolsHost ||
host == chrome::kChromeUIAccessibilityHost) {
return const_cast<ElectronWebUIControllerFactory*>(this);
return this;
}
return content::WebUI::kNoWebUI;