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

Unified Diff: chrome/browser/search_engines/template_url_service.cc

Issue 254763005: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update url/BUILD.gn and address some style nits. 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/search_engines/template_url_service.cc
diff --git a/chrome/browser/search_engines/template_url_service.cc b/chrome/browser/search_engines/template_url_service.cc
index b75082390bdc5a2acaace0cad8a21288e22b1eaf..bc2dbae6acb8a3ac53b2b2cf6f2118acb0fb7bc5 100644
--- a/chrome/browser/search_engines/template_url_service.cc
+++ b/chrome/browser/search_engines/template_url_service.cc
@@ -51,6 +51,7 @@
#include "sync/protocol/search_engine_specifics.pb.h"
#include "sync/protocol/sync.pb.h"
#include "ui/base/l10n/l10n_util.h"
+#include "url/url_constants.h"
typedef SearchHostToURLsMap::TemplateURLSet TemplateURLSet;
typedef TemplateURLService::SyncDataMap SyncDataMap;
@@ -345,9 +346,9 @@ base::string16 TemplateURLService::CleanUserInputKeyword(
// type a web address, but rather an FTP, file:, or other scheme URL, or a
// search query with some sort of initial operator (e.g. "site:").
if (result.compare(0, scheme_component.end(),
- base::ASCIIToUTF16(content::kHttpScheme)) &&
+ base::ASCIIToUTF16(url::kHttpScheme)) &&
result.compare(0, scheme_component.end(),
- base::ASCIIToUTF16(content::kHttpsScheme)))
+ base::ASCIIToUTF16(url::kHttpsScheme)))
return base::string16();
// Include trailing ':'.

Powered by Google App Engine
This is Rietveld 408576698