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

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

Issue 254763005: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial patches. Created 6 years, 8 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
Index: chrome/browser/history/url_database.cc
diff --git a/chrome/browser/history/url_database.cc b/chrome/browser/history/url_database.cc
index 605213b135e371ba7d38a449a7751bc39df394a3..58ba4e4e5ba48c9cf059301be09d0c96b20d5349 100644
--- a/chrome/browser/history/url_database.cc
+++ b/chrome/browser/history/url_database.cc
@@ -13,6 +13,7 @@
#include "base/strings/utf_string_conversions.h"
#include "chrome/common/url_constants.h"
#include "net/base/net_util.h"
+#include "net/base/url_constants.h"
#include "sql/statement.h"
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
@@ -312,11 +313,8 @@ bool URLDatabase::AutocompleteForPrefix(const std::string& prefix,
}
bool URLDatabase::IsTypedHost(const std::string& host) {
- const char* schemes[] = {
- content::kHttpScheme,
- content::kHttpsScheme,
- content::kFtpScheme
- };
+ const char* schemes[] = {net::kHttpScheme, net::kHttpsScheme,
+ content::kFtpScheme};
URLRows dummy;
for (size_t i = 0; i < arraysize(schemes); ++i) {
std::string scheme_and_host(schemes[i]);

Powered by Google App Engine
This is Rietveld 408576698