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

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

Issue 9097005: Move WebUIFactory into content/public/browser and make it use WebContents instead of TabContents.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 11 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
« no previous file with comments | « chrome/browser/ui/webui/test_chrome_web_ui_factory.h ('k') | chrome/browser/ui/webui/uber/uber_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/test_chrome_web_ui_factory.cc
===================================================================
--- chrome/browser/ui/webui/test_chrome_web_ui_factory.cc (revision 116777)
+++ chrome/browser/ui/webui/test_chrome_web_ui_factory.cc (working copy)
@@ -5,8 +5,10 @@
#include "chrome/browser/ui/webui/test_chrome_web_ui_factory.h"
#include "chrome/browser/profiles/profile.h"
-#include "content/browser/tab_contents/tab_contents.h"
+#include "content/public/browser/web_contents.h"
+using content::WebContents;
+
TestChromeWebUIFactory::WebUIProvider::~WebUIProvider() {
}
@@ -35,13 +37,13 @@
ChromeWebUIFactory::GetWebUIType(profile, url);
}
-WebUI* TestChromeWebUIFactory::CreateWebUIForURL(TabContents* tab_contents,
+WebUI* TestChromeWebUIFactory::CreateWebUIForURL(WebContents* web_contents,
const GURL& url) const {
Profile* profile =
- Profile::FromBrowserContext(tab_contents->GetBrowserContext());
+ Profile::FromBrowserContext(web_contents->GetBrowserContext());
WebUIProvider* provider = GetWebUIProvider(profile, url);
- return provider ? provider->NewWebUI(tab_contents, url) :
- ChromeWebUIFactory::CreateWebUIForURL(tab_contents, url);
+ return provider ? provider->NewWebUI(web_contents, url) :
+ ChromeWebUIFactory::CreateWebUIForURL(web_contents, url);
}
TestChromeWebUIFactory* TestChromeWebUIFactory::GetInstance() {
« no previous file with comments | « chrome/browser/ui/webui/test_chrome_web_ui_factory.h ('k') | chrome/browser/ui/webui/uber/uber_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698