summaryrefslogtreecommitdiffstats
path: root/content/browser/site_instance.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-29 16:18:33 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-29 16:18:33 +0000
commite12b30268ea0dffc301a9bb06f25db6a924d6e00 (patch)
tree9892358261c8cb350d94727ad3a764c7cbb3f5f0 /content/browser/site_instance.cc
parent8f34c55ab33c9ae2232c61913882be7e320f5542 (diff)
downloadchromium_src-e12b30268ea0dffc301a9bb06f25db6a924d6e00.zip
chromium_src-e12b30268ea0dffc301a9bb06f25db6a924d6e00.tar.gz
chromium_src-e12b30268ea0dffc301a9bb06f25db6a924d6e00.tar.bz2
Move WebUIFactory to chrome/browser.
This reduces dependencies from content/ to chrome/. WebUIFactory is the interface in content/ to ChromeWebUIFactory in chrome/ BUG=77092 TEST=none Review URL: http://codereview.chromium.org/6713082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79691 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/site_instance.cc')
-rw-r--r--content/browser/site_instance.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/browser/site_instance.cc b/content/browser/site_instance.cc
index a59d1ca..26565a1 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;