diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-26 18:39:24 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-26 18:39:24 +0000 |
commit | 3f8cb62b2416b1365407eaaf935664509ebcef5c (patch) | |
tree | 4293fcd06e7de652e09967d7b9479135704886e9 /chrome/browser/history/history.cc | |
parent | 8793b4d15e6af6b41cc5a3f819c219cfb65b1e73 (diff) | |
download | chromium_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/history/history.cc')
-rw-r--r-- | chrome/browser/history/history.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/history/history.cc b/chrome/browser/history/history.cc index 49707cf..ced7b64 100644 --- a/chrome/browser/history/history.cc +++ b/chrome/browser/history/history.cc @@ -578,8 +578,7 @@ bool HistoryService::CanAddURL(const GURL& url) const { return false; if (url.SchemeIs(chrome::kAboutScheme)) { - std::string path = url.path(); - if (path.empty() || LowerCaseEqualsASCII(path, "blank")) + if (LowerCaseEqualsASCII(url.spec(), chrome::kAboutBlankURL)) return false; // We allow all other about URLs since the user may like to see things // like "about:memory" or "about:histograms" in their history and |