Revert "chrome: Simplify WebUIControllerFactory registration (see issue #3047)"

Still need to unregister the Content-level factory to stop Alloy loading
unsupported pages.

This reverts commit a21d0c41a4.
This commit is contained in:
Marshall Greenblatt
2022-02-16 18:19:56 -05:00
parent a21d0c41a4
commit e7aa571012
4 changed files with 27 additions and 17 deletions

View File

@ -695,6 +695,9 @@ CefWebUIControllerFactory* CefWebUIControllerFactory::GetInstance() {
void RegisterWebUIControllerFactory() {
// Channel all WebUI handling through CefWebUIControllerFactory.
content::WebUIControllerFactory::UnregisterFactoryForTesting(
content::ContentWebUIControllerFactory::GetInstance());
content::WebUIControllerFactory::RegisterFactory(
CefWebUIControllerFactory::GetInstance());
}