summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/history.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/history/history.cc')
-rw-r--r--chrome/browser/history/history.cc3
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