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

Unified Diff: content/browser/browsing_instance.cc

Issue 6713082: Move WebUIFactory to chrome/browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ContentWebUIClient 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
Index: content/browser/browsing_instance.cc
diff --git a/content/browser/browsing_instance.cc b/content/browser/browsing_instance.cc
index 1759fc0917f5c3aab09a9051254d2c2acdc24bd5..f65bab935127ebc9c65cfee7d2b1960e9a0211dd 100644
--- a/content/browser/browsing_instance.cc
+++ b/content/browser/browsing_instance.cc
@@ -10,7 +10,8 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/url_constants.h"
#include "content/browser/site_instance.h"
-#include "content/browser/webui/web_ui_factory.h"
+#include "content/browser/webui/content_web_ui_client.h"
+#include "content/common/content_client.h"
// static
BrowsingInstance::ProfileSiteInstanceMap
@@ -39,9 +40,10 @@ bool BrowsingInstance::ShouldUseProcessPerSite(const GURL& url) {
return true;
// DevTools pages have WebUI type but should not reuse the same host.
- if (WebUIFactory::UseWebUIForURL(profile_, url) &&
- !url.SchemeIs(chrome::kChromeDevToolsScheme))
+ if (content::GetContentClient()->web_ui()->UseWebUIForURL(profile_, url) &&
+ !url.SchemeIs(chrome::kChromeDevToolsScheme)) {
return true;
+ }
// In all other cases, don't use process-per-site logic.
return false;

Powered by Google App Engine
This is Rietveld 408576698