| Index: chrome/browser/autocomplete/search_provider.cc
|
| diff --git a/chrome/browser/autocomplete/search_provider.cc b/chrome/browser/autocomplete/search_provider.cc
|
| index 9f934cb6d7d43daa2e358f30376b7a04e7d26f16..378979a22c8860a6b3db79216256e805f4caf41e 100644
|
| --- a/chrome/browser/autocomplete/search_provider.cc
|
| +++ b/chrome/browser/autocomplete/search_provider.cc
|
| @@ -45,9 +45,9 @@
|
| #include "net/url_request/url_fetcher.h"
|
| #include "net/url_request/url_request_status.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| +#include "url/url_constants.h"
|
| #include "url/url_util.h"
|
|
|
| -
|
| // Helpers --------------------------------------------------------------------
|
|
|
| namespace {
|
| @@ -559,8 +559,8 @@ bool SearchProvider::IsQuerySuitableForSuggest() const {
|
| // and happens to currently be invalid -- in which case we again want to run
|
| // our checks below. Other QUERY cases are less likely to be URLs and thus we
|
| // assume we're OK.
|
| - if (!LowerCaseEqualsASCII(input_.scheme(), content::kHttpScheme) &&
|
| - !LowerCaseEqualsASCII(input_.scheme(), content::kHttpsScheme) &&
|
| + if (!LowerCaseEqualsASCII(input_.scheme(), url::kHttpScheme) &&
|
| + !LowerCaseEqualsASCII(input_.scheme(), url::kHttpsScheme) &&
|
| !LowerCaseEqualsASCII(input_.scheme(), content::kFtpScheme))
|
| return (input_.type() == AutocompleteInput::QUERY);
|
|
|
| @@ -582,7 +582,7 @@ bool SearchProvider::IsQuerySuitableForSuggest() const {
|
| // Don't send anything for https except the hostname. Hostnames are OK
|
| // because they are visible when the TCP connection is established, but the
|
| // specific path may reveal private information.
|
| - if (LowerCaseEqualsASCII(input_.scheme(), content::kHttpsScheme) &&
|
| + if (LowerCaseEqualsASCII(input_.scheme(), url::kHttpsScheme) &&
|
| parts.path.is_nonempty())
|
| return false;
|
|
|
|
|