Index: chrome/browser/autocomplete/autocomplete_input.cc |
diff --git a/chrome/browser/autocomplete/autocomplete_input.cc b/chrome/browser/autocomplete/autocomplete_input.cc |
index 20160ee217c39c36ee1b9ab1a2806bc710f43161..6eaa8d0cdc6b3a58101762aa3c982b06ea459fed 100644 |
--- a/chrome/browser/autocomplete/autocomplete_input.cc |
+++ b/chrome/browser/autocomplete/autocomplete_input.cc |
@@ -13,6 +13,7 @@ |
#include "net/base/net_util.h" |
#include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
#include "url/url_canon_ip.h" |
+#include "url/url_constants.h" |
#include "url/url_util.h" |
namespace { |
@@ -175,8 +176,8 @@ AutocompleteInput::Type AutocompleteInput::Parse( |
// (e.g. "ftp" or "view-source") but I'll wait to spend the effort on that |
// until I run into some cases that really need it. |
if (parts->scheme.is_nonempty() && |
- !LowerCaseEqualsASCII(parsed_scheme, content::kHttpScheme) && |
- !LowerCaseEqualsASCII(parsed_scheme, content::kHttpsScheme)) { |
+ !LowerCaseEqualsASCII(parsed_scheme, url::kHttpScheme) && |
+ !LowerCaseEqualsASCII(parsed_scheme, url::kHttpsScheme)) { |
// See if we know how to handle the URL internally. There are some schemes |
// that we convert to other things before they reach the renderer or else |
// the renderer handles internally without reaching the net::URLRequest |
@@ -213,7 +214,7 @@ AutocompleteInput::Type AutocompleteInput::Parse( |
// We don't know about this scheme. It might be that the user typed a |
// URL of the form "username:password@foo.com". |
const base::string16 http_scheme_prefix = |
- base::ASCIIToUTF16(std::string(content::kHttpScheme) + |
+ base::ASCIIToUTF16(std::string(url::kHttpScheme) + |
content::kStandardSchemeSeparator); |
url_parse::Parsed http_parts; |
base::string16 http_scheme; |
@@ -221,7 +222,7 @@ AutocompleteInput::Type AutocompleteInput::Parse( |
Type http_type = Parse(http_scheme_prefix + text, desired_tld, |
&http_parts, &http_scheme, |
&http_canonicalized_url); |
- DCHECK_EQ(std::string(content::kHttpScheme), |
+ DCHECK_EQ(std::string(url::kHttpScheme), |
base::UTF16ToUTF8(http_scheme)); |
if ((http_type == URL) && http_parts.username.is_nonempty() && |
@@ -506,7 +507,7 @@ bool AutocompleteInput::HasHTTPScheme(const base::string16& input) { |
if (url_util::FindAndCompareScheme(utf8_input, content::kViewSourceScheme, |
&scheme)) |
utf8_input.erase(0, scheme.end() + 1); |
- return url_util::FindAndCompareScheme(utf8_input, content::kHttpScheme, NULL); |
+ return url_util::FindAndCompareScheme(utf8_input, url::kHttpScheme, NULL); |
} |
void AutocompleteInput::UpdateText(const base::string16& text, |