summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history
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/history
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/history')
-rw-r--r--chrome/browser/history/history.cc3
-rw-r--r--chrome/browser/history/url_database.cc3
2 files changed, 3 insertions, 3 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
diff --git a/chrome/browser/history/url_database.cc b/chrome/browser/history/url_database.cc
index 6db3b10..5bef3f5 100644
--- a/chrome/browser/history/url_database.cc
+++ b/chrome/browser/history/url_database.cc
@@ -10,6 +10,7 @@
#include "base/string_util.h"
#include "chrome/common/l10n_util.h"
#include "chrome/common/sqlite_utils.h"
+#include "chrome/common/url_constants.h"
#include "googleurl/src/gurl.h"
using base::Time;
@@ -408,7 +409,7 @@ void URLDatabase::GetMostRecentKeywordSearchTerms(
bool URLDatabase::MigrateFromVersion11ToVersion12() {
URLRow about_row;
- if (GetRowForURL(GURL("about:blank"), &about_row)) {
+ if (GetRowForURL(GURL(chrome::kAboutBlankURL), &about_row)) {
about_row.set_favicon_id(0);
return UpdateURLRow(about_row.id(), about_row);
}