1diff --git chrome/browser/ui/webui/chrome_untrusted_web_ui_controller_factory.cc chrome/browser/ui/webui/chrome_untrusted_web_ui_controller_factory.cc 2index 78d2b6eef6ca6..ebefa586902c9 100644 3--- chrome/browser/ui/webui/chrome_untrusted_web_ui_controller_factory.cc 4+++ chrome/browser/ui/webui/chrome_untrusted_web_ui_controller_factory.cc 5@@ -94,9 +94,15 @@ WebUIConfigList CreateConfigs() { 6 } // namespace 7 8 // static 9-void ChromeUntrustedWebUIControllerFactory::RegisterInstance() { 10+ChromeUntrustedWebUIControllerFactory* 11+ChromeUntrustedWebUIControllerFactory::GetInstance() { 12 static base::NoDestructor<ChromeUntrustedWebUIControllerFactory> instance; 13- content::WebUIControllerFactory::RegisterFactory(instance.get()); 14+ return instance.get(); 15+} 16+ 17+// static 18+void ChromeUntrustedWebUIControllerFactory::RegisterInstance() { 19+ content::WebUIControllerFactory::RegisterFactory(GetInstance()); 20 } 21 22 ChromeUntrustedWebUIControllerFactory::ChromeUntrustedWebUIControllerFactory() 23diff --git chrome/browser/ui/webui/chrome_untrusted_web_ui_controller_factory.h chrome/browser/ui/webui/chrome_untrusted_web_ui_controller_factory.h 24index fd16bca71a3f0..738afa6654e42 100644 25--- chrome/browser/ui/webui/chrome_untrusted_web_ui_controller_factory.h 26+++ chrome/browser/ui/webui/chrome_untrusted_web_ui_controller_factory.h 27@@ -12,6 +12,7 @@ class ChromeUntrustedWebUIControllerFactory 28 public: 29 // Register the singleton instance of this class. 30 static void RegisterInstance(); 31+ static ChromeUntrustedWebUIControllerFactory* GetInstance(); 32 33 ChromeUntrustedWebUIControllerFactory(); 34 ChromeUntrustedWebUIControllerFactory( 35