| Index: components/omnibox/search_suggestion_parser.cc
|
| diff --git a/components/omnibox/search_suggestion_parser.cc b/components/omnibox/search_suggestion_parser.cc
|
| index 26d1933ea024ade7f4bdf5169848058b5f371e44..388731b56492abb486cf62024547055fd4d5c859 100644
|
| --- a/components/omnibox/search_suggestion_parser.cc
|
| +++ b/components/omnibox/search_suggestion_parser.cc
|
| @@ -18,7 +18,7 @@
|
| #include "components/omnibox/autocomplete_input.h"
|
| #include "components/omnibox/url_prefix.h"
|
| #include "components/url_fixer/url_fixer.h"
|
| -#include "net/base/net_util.h"
|
| +#include "components/url_formatter/url_formatter.h"
|
| #include "net/http/http_response_headers.h"
|
| #include "net/url_request/url_fetcher.h"
|
| #include "url/url_constants.h"
|
| @@ -227,9 +227,12 @@ SearchSuggestionParser::NavigationResult::NavigationResult(
|
| deletion_url),
|
| url_(url),
|
| formatted_url_(AutocompleteInput::FormattedStringWithEquivalentMeaning(
|
| - url, net::FormatUrl(url, languages,
|
| - net::kFormatUrlOmitAll & ~net::kFormatUrlOmitHTTP,
|
| - net::UnescapeRule::SPACES, NULL, NULL, NULL),
|
| + url,
|
| + url_formatter::FormatUrl(
|
| + url, languages,
|
| + url_formatter::kFormatUrlOmitAll &
|
| + ~url_formatter::kFormatUrlOmitHTTP,
|
| + net::UnescapeRule::SPACES, nullptr, nullptr, nullptr),
|
| scheme_classifier)),
|
| description_(description) {
|
| DCHECK(url_.is_valid());
|
| @@ -259,11 +262,13 @@ SearchSuggestionParser::NavigationResult::CalculateAndClassifyMatchContents(
|
| formatted_url_.find(input_text) : prefix->prefix.length();
|
| bool trim_http = !AutocompleteInput::HasHTTPScheme(input_text) &&
|
| (!prefix || (match_start != 0));
|
| - const net::FormatUrlTypes format_types =
|
| - net::kFormatUrlOmitAll & ~(trim_http ? 0 : net::kFormatUrlOmitHTTP);
|
| + const url_formatter::FormatUrlTypes format_types =
|
| + url_formatter::kFormatUrlOmitAll &
|
| + ~(trim_http ? 0 : url_formatter::kFormatUrlOmitHTTP);
|
|
|
| - base::string16 match_contents = net::FormatUrl(url_, languages, format_types,
|
| - net::UnescapeRule::SPACES, NULL, NULL, &match_start);
|
| + base::string16 match_contents = url_formatter::FormatUrl(
|
| + url_, languages, format_types, net::UnescapeRule::SPACES, NULL, NULL,
|
| + &match_start);
|
| // If the first match in the untrimmed string was inside a scheme that we
|
| // trimmed, look for a subsequent match.
|
| if (match_start == base::string16::npos)
|
|
|