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

@@ -436,13 +436,6 @@ patches = [
# This crash was introduced by https://crrev.com/5f6212babf.
'name': 'browser_scheduler',
},
{
# Restore access to WebUIControllerFactory::UnregisterFactoryForTesting
# which was removed in https://crrev.com/5f183d6636. We can't use
# ScopedWebUIControllerFactoryRegistration because it pulls in GTest
# dependencies.
'name': 'browser_web_ui_controller_factory',
},
{
# Avoid a shutdown crash caused by PrefWatcher holding a reference to
# |g_browser_process->local_state()|, and the local_state being deleted