chrome: Simplify WebUIControllerFactory registration (see issue #3047)

Disable the initial Chrome factory registration in ChromeBrowserMainParts
instead of trying to unregister those factories at a later point.
This commit is contained in:
Marshall Greenblatt
2022-02-16 18:05:26 -05:00
parent 883b4af51d
commit 32ebbd60f9
4 changed files with 17 additions and 27 deletions

View File

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