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

Unified Diff: content/browser/tab_contents/tab_contents.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
Index: content/browser/tab_contents/tab_contents.cc
===================================================================
--- content/browser/tab_contents/tab_contents.cc (revision 116777)
+++ content/browser/tab_contents/tab_contents.cc (working copy)
@@ -32,7 +32,6 @@
#include "content/browser/tab_contents/provisional_load_details.h"
#include "content/browser/tab_contents/tab_contents_view.h"
#include "content/browser/tab_contents/title_updated_details.h"
-#include "content/browser/webui/web_ui_factory.h"
#include "content/common/intents_messages.h"
#include "content/common/view_messages.h"
#include "content/public/browser/browser_context.h"
@@ -45,6 +44,7 @@
#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_contents_delegate.h"
#include "content/public/browser/web_contents_observer.h"
+#include "content/public/browser/web_ui_factory.h"
#include "content/public/common/bindings_policy.h"
#include "content/public/common/content_constants.h"
#include "content/public/common/content_restriction.h"
@@ -1060,8 +1060,8 @@
}
WebUI::TypeID TabContents::GetWebUITypeForCurrentState() {
- return content::WebUIFactory::Get()->GetWebUIType(GetBrowserContext(),
- GetURL());
+ return content::GetContentClient()->browser()->GetWebUIFactory()->
+ GetWebUIType(GetBrowserContext(), GetURL());
}
WebUI* TabContents::GetWebUIForCurrentState() {
@@ -2170,7 +2170,8 @@
}
WebUI* TabContents::CreateWebUIForRenderManager(const GURL& url) {
- return content::WebUIFactory::Get()->CreateWebUIForURL(this, url);
+ return content::GetContentClient()->browser()->GetWebUIFactory()->
+ CreateWebUIForURL(this, url);
}
NavigationEntry*

Powered by Google App Engine
This is Rietveld 408576698