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

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: 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/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..07e76178dfce34afb0aec822da460a31048b0d60 100644
--- a/chrome/browser/search_engines/template_url_service.cc
+++ b/chrome/browser/search_engines/template_url_service.cc
@@ -46,6 +46,7 @@
#include "content/public/browser/notification_service.h"
#include "extensions/common/constants.h"
#include "net/base/net_util.h"
+#include "net/base/url_constants.h"
#include "sync/api/sync_change.h"
#include "sync/api/sync_error_factory.h"
#include "sync/protocol/search_engine_specifics.pb.h"
@@ -344,10 +345,10 @@ base::string16 TemplateURLService::CleanUserInputKeyword(
// If the scheme isn't "http" or "https", bail. The user isn't trying to
// 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)) &&
- result.compare(0, scheme_component.end(),
- base::ASCIIToUTF16(content::kHttpsScheme)))
+ if (result.compare(
+ 0, scheme_component.end(), base::ASCIIToUTF16(net::kHttpScheme)) &&
+ result.compare(
+ 0, scheme_component.end(), base::ASCIIToUTF16(net::kHttpsScheme)))
return base::string16();
// Include trailing ':'.

Powered by Google App Engine
This is Rietveld 408576698