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

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: 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/autocomplete/autocomplete_match.cc
diff --git a/chrome/browser/autocomplete/autocomplete_match.cc b/chrome/browser/autocomplete/autocomplete_match.cc
index 4f6714744af6cf62e3c439f930a685cd3ecec976..1c2c7bb7fbf3375be881d2795a4af5c05dfa4269 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 "net/base/url_constants.h"
namespace {
@@ -376,10 +377,9 @@ void AutocompleteMatch::ComputeStrippedDestinationURL(Profile* profile) {
}
// Replace https protocol with http protocol.
- if (stripped_destination_url.SchemeIs(content::kHttpsScheme)) {
- replacements.SetScheme(
- content::kHttpScheme,
- url_parse::Component(0, strlen(content::kHttpScheme)));
+ if (stripped_destination_url.SchemeIs(net::kHttpsScheme)) {
+ replacements.SetScheme(net::kHttpScheme,
+ url_parse::Component(0, strlen(net::kHttpScheme)));
needs_replacement = true;
}

Powered by Google App Engine
This is Rietveld 408576698