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

Unified Diff: chrome/browser/autocomplete/autocomplete_match.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/autocomplete/autocomplete_match.cc
diff --git a/chrome/browser/autocomplete/autocomplete_match.cc b/chrome/browser/autocomplete/autocomplete_match.cc
index 4f6714744af6cf62e3c439f930a685cd3ecec976..6829eaae5509fbce06bd537cfd357c8423081f98 100644
--- a/chrome/browser/autocomplete/autocomplete_match.cc
+++ b/chrome/browser/autocomplete/autocomplete_match.cc
@@ -17,6 +17,7 @@
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "content/public/common/url_constants.h"
#include "grit/theme_resources.h"
+#include "url/url_constants.h"
namespace {
@@ -376,10 +377,10 @@ void AutocompleteMatch::ComputeStrippedDestinationURL(Profile* profile) {
}
// Replace https protocol with http protocol.
- if (stripped_destination_url.SchemeIs(content::kHttpsScheme)) {
+ if (stripped_destination_url.SchemeIs(url::kHttpsScheme)) {
replacements.SetScheme(
- content::kHttpScheme,
- url_parse::Component(0, strlen(content::kHttpScheme)));
+ url::kHttpScheme,
+ url_parse::Component(0, strlen(url::kHttpScheme)));
needs_replacement = true;
}

Powered by Google App Engine
This is Rietveld 408576698