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

Unified Diff: content/browser/browsing_instance.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/uber/uber_ui.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browsing_instance.cc
===================================================================
--- content/browser/browsing_instance.cc (revision 116777)
+++ content/browser/browsing_instance.cc (working copy)
@@ -7,9 +7,9 @@
#include "base/command_line.h"
#include "base/logging.h"
#include "content/browser/site_instance.h"
-#include "content/browser/webui/web_ui_factory.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/content_browser_client.h"
+#include "content/public/browser/web_ui_factory.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/url_constants.h"
@@ -44,7 +44,8 @@
return true;
// DevTools pages have WebUI type but should not reuse the same host.
- if (content::WebUIFactory::Get()->UseWebUIForURL(browser_context_, url) &&
+ if (content::GetContentClient()->browser()->GetWebUIFactory()->
+ UseWebUIForURL(browser_context_, url) &&
!url.SchemeIs(chrome::kChromeDevToolsScheme)) {
return true;
}
« no previous file with comments | « chrome/browser/ui/webui/uber/uber_ui.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698