Index: chrome/browser/ui/webui/test_chrome_web_ui_factory.cc |
diff --git a/chrome/browser/ui/webui/test_chrome_web_ui_factory.cc b/chrome/browser/ui/webui/test_chrome_web_ui_factory.cc |
index 467d194da8e7d4db77158b30de056605cba69abc..d404abf8ad7ff7326b8c5026e23de6ff617364df 100644 |
--- a/chrome/browser/ui/webui/test_chrome_web_ui_factory.cc |
+++ b/chrome/browser/ui/webui/test_chrome_web_ui_factory.cc |
@@ -27,7 +27,8 @@ void TestChromeWebUIFactory::RemoveFactoryOverride(const std::string& host) { |
} |
WebUI::TypeID TestChromeWebUIFactory::GetWebUIType( |
- Profile* profile, const GURL& url) const { |
+ content::BrowserContext* browser_context, const GURL& url) const { |
+ Profile* profile = Profile::FromBrowserContext(browser_context); |
WebUIProvider* provider = GetWebUIProvider(profile, url); |
return provider ? reinterpret_cast<WebUI::TypeID>(provider) : |
ChromeWebUIFactory::GetWebUIType(profile, url); |