diff options
author | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-07 17:20:12 +0000 |
---|---|---|
committer | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-07 17:20:12 +0000 |
commit | 0985614e49db6b4a94c551fda1107462b53a9aac (patch) | |
tree | 60ddc04f5622960211f528e828b2ac7f38f0f31b /chrome/browser/ui/webui/web_ui_util.cc | |
parent | bab8eff84eba3743c1812cc8fb4c49a9771864c4 (diff) | |
download | chromium_src-0985614e49db6b4a94c551fda1107462b53a9aac.zip chromium_src-0985614e49db6b4a94c551fda1107462b53a9aac.tar.gz chromium_src-0985614e49db6b4a94c551fda1107462b53a9aac.tar.bz2 |
*Fixup about and chrome scheme URLs in URLFixerUpper::FixupURL.
*Update AboutSource to use the source_name of each about/chrome page.
*Make WillHandleBrowserAboutURL fix up schemes and handle chrome://foo/
-Redirect memory to memory-redirect (wasn't handling chrome://memory/).
-Catalog all kChromeUI*Hosts in url_constants.cc
-Simplify paths (credits, os-credits, ipc, settings, about/version).
-Nix web_ui_util::ChromeURLHostEquals (use scheme & host comparison).
-Favor GURL::SchemeIs and url_constants, update & expand tests.
-Add and fixup chrome://chrome-urls (the about:about page).
BUG=55771
TEST=Access about:, about://, chrome:, chrome:// pages.
Review URL: http://codereview.chromium.org/7068007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/web_ui_util.cc')
-rw-r--r-- | chrome/browser/ui/webui/web_ui_util.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/chrome/browser/ui/webui/web_ui_util.cc b/chrome/browser/ui/webui/web_ui_util.cc index b6f49b3..ee854ac 100644 --- a/chrome/browser/ui/webui/web_ui_util.cc +++ b/chrome/browser/ui/webui/web_ui_util.cc @@ -7,9 +7,6 @@ #include <vector> #include "base/base64.h" -#include "base/string_util.h" -#include "chrome/common/url_constants.h" -#include "googleurl/src/gurl.h" #include "ui/base/resource/resource_bundle.h" #include "ui/gfx/codec/png_codec.h" @@ -42,10 +39,4 @@ std::string GetImageDataUrlFromResource(int res) { return str_url; } -bool ChromeURLHostEquals(const GURL& url, const char* host) { - return (url.SchemeIs(chrome::kChromeUIScheme) || - url.SchemeIs(chrome::kAboutScheme)) && - LowerCaseEqualsASCII(url.host(), host); -} - } // namespace web_ui_util |