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

Unified Diff: content/browser/site_instance.cc

Issue 6713082: Move WebUIFactory to chrome/browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: synced Created 9 years, 9 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 | « content/browser/content_browser_client.cc ('k') | content/browser/tab_contents/render_view_host_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/site_instance.cc
diff --git a/content/browser/site_instance.cc b/content/browser/site_instance.cc
index a59d1ca0ea270bf885b14715bffc6170c1918579..26565a1f47d04200151daf1974b320f613764d0d 100644
--- a/content/browser/site_instance.cc
+++ b/content/browser/site_instance.cc
@@ -8,8 +8,10 @@
#include "chrome/browser/renderer_host/browser_render_process_host.h"
#include "chrome/common/url_constants.h"
#include "content/browser/browsing_instance.h"
+#include "content/browser/content_browser_client.h"
#include "content/browser/webui/web_ui_factory.h"
#include "content/common/notification_service.h"
+#include "content/common/content_client.h"
#include "net/base/registry_controlled_domain.h"
// We treat javascript:, about:crash, about:hang, and about:shorthang as the
@@ -211,7 +213,7 @@ RenderProcessHost::Type SiteInstance::RendererTypeForURL(const GURL& url) {
return RenderProcessHost::TYPE_EXTENSION;
// TODO(erikkay) creis recommends using UseWebUIForURL instead.
- if (WebUIFactory::HasWebUIScheme(url))
+ if (content::WebUIFactory::Get()->HasWebUIScheme(url))
return RenderProcessHost::TYPE_WEBUI;
return RenderProcessHost::TYPE_NORMAL;
« no previous file with comments | « content/browser/content_browser_client.cc ('k') | content/browser/tab_contents/render_view_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698