summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_about_handler.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 18:39:24 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 18:39:24 +0000
commit3f8cb62b2416b1365407eaaf935664509ebcef5c (patch)
tree4293fcd06e7de652e09967d7b9479135704886e9 /chrome/browser/browser_about_handler.cc
parent8793b4d15e6af6b41cc5a3f819c219cfb65b1e73 (diff)
downloadchromium_src-3f8cb62b2416b1365407eaaf935664509ebcef5c.zip
chromium_src-3f8cb62b2416b1365407eaaf935664509ebcef5c.tar.gz
chromium_src-3f8cb62b2416b1365407eaaf935664509ebcef5c.tar.bz2
More URL constants replacement.
Review URL: http://codereview.chromium.org/28170 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10487 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.cc')
-rw-r--r--chrome/browser/browser_about_handler.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 7f25a60..0d83902 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -169,7 +169,7 @@ bool BrowserAboutHandler::MaybeHandle(GURL* url,
// about:blank is special. Frames are allowed to access about:blank,
// but they are not allowed to access other types of about pages.
// Just ignore the about:blank and let the TAB_CONTENTS_WEB handle it.
- if (StringToLowerASCII(url->path()) == "blank") {
+ if (LowerCaseEqualsASCII(url->spec(), chrome::kAboutBlankURL)) {
return false;
}
@@ -192,7 +192,7 @@ bool BrowserAboutHandler::MaybeHandle(GURL* url,
// Navigate the renderer to about:blank. This is kind of stupid but is the
// easiest thing to do in this situation without adding a lot of complexity
// for this developer-only feature.
- *url = GURL("about:blank");
+ *url = GURL(chrome::kAboutBlankURL);
return false;
}
@@ -205,7 +205,7 @@ bool BrowserAboutHandler::MaybeHandle(GURL* url,
NOTIMPLEMENTED();
// TODO(port) Implement this.
#endif
- *url = GURL("about:blank");
+ *url = GURL(chrome::kAboutBlankURL);
return false;
}
#endif