diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-29 16:18:33 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-29 16:18:33 +0000 |
commit | e12b30268ea0dffc301a9bb06f25db6a924d6e00 (patch) | |
tree | 9892358261c8cb350d94727ad3a764c7cbb3f5f0 /chrome/browser/browser_url_handler.cc | |
parent | 8f34c55ab33c9ae2232c61913882be7e320f5542 (diff) | |
download | chromium_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 'chrome/browser/browser_url_handler.cc')
-rw-r--r-- | chrome/browser/browser_url_handler.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/browser_url_handler.cc b/chrome/browser/browser_url_handler.cc index 4234ea2..b9c8147 100644 --- a/chrome/browser/browser_url_handler.cc +++ b/chrome/browser/browser_url_handler.cc @@ -8,8 +8,9 @@ #include "chrome/browser/browser_about_handler.h" #include "chrome/browser/extensions/extension_web_ui.h" #include "chrome/browser/profiles/profile.h" +#include "chrome/browser/ui/webui/chrome_web_ui_factory.h" #include "chrome/common/url_constants.h" -#include "content/browser/webui/web_ui_factory.h" +#include "content/browser/webui/web_ui.h" #include "googleurl/src/gurl.h" // Handles rewriting view-source URLs for what we'll actually load. @@ -61,7 +62,7 @@ static bool ReverseViewSource(GURL* url, Profile* profile) { // Handles rewriting Web UI URLs. static bool HandleWebUI(GURL* url, Profile* profile) { - if (!WebUIFactory::UseWebUIForURL(profile, *url)) + if (!ChromeWebUIFactory::GetInstance()->UseWebUIForURL(profile, *url)) return false; // Special case the new tab page. In older versions of Chrome, the new tab |