Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: chrome/browser/ui/webui/test_chrome_web_ui_factory.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: slight tweaking for comments Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « chrome/browser/ui/webui/test_chrome_web_ui_factory.h ('k') | chrome/browser/visitedlink/visitedlink_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698