Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(788)

Unified Diff: chrome/browser/history/visit_database.cc

Issue 31008: Coalesce more hardcoded schemes to using predefined constants. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/history_backend.cc ('k') | chrome/browser/importer/firefox2_importer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/visit_database.cc
===================================================================
--- chrome/browser/history/visit_database.cc (revision 10345)
+++ chrome/browser/history/visit_database.cc (working copy)
@@ -11,6 +11,7 @@
#include "chrome/browser/history/url_database.h"
#include "chrome/common/page_transition_types.h"
+#include "chrome/common/url_constants.h"
using base::Time;
@@ -326,7 +327,7 @@
bool VisitDatabase::GetVisitCountToHost(const GURL& url,
int* count,
Time* first_visit) {
- if (!url.SchemeIs("http") && !url.SchemeIs("https"))
+ if (!url.SchemeIs(chrome::kHttpScheme) && !url.SchemeIs(chrome::kHttpsScheme))
return false;
// We need to search for URLs with a matching host/port. One way to query for
« no previous file with comments | « chrome/browser/history/history_backend.cc ('k') | chrome/browser/importer/firefox2_importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698