Index: components/omnibox/autocomplete_input.cc |
diff --git a/components/omnibox/autocomplete_input.cc b/components/omnibox/autocomplete_input.cc |
index a078f8cf411269b6f226f8c4c401ae12a8c95313..6c12a85cb0016be7661745e3fab5bae84b847361 100644 |
--- a/components/omnibox/autocomplete_input.cc |
+++ b/components/omnibox/autocomplete_input.cc |
@@ -9,6 +9,7 @@ |
#include "components/metrics/proto/omnibox_event.pb.h" |
#include "components/omnibox/autocomplete_scheme_classifier.h" |
#include "components/url_fixer/url_fixer.h" |
+#include "components/url_formatter/url_formatter.h" |
#include "net/base/net_util.h" |
#include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
#include "url/url_canon_ip.h" |
@@ -468,7 +469,7 @@ base::string16 AutocompleteInput::FormattedStringWithEquivalentMeaning( |
const GURL& url, |
const base::string16& formatted_url, |
const AutocompleteSchemeClassifier& scheme_classifier) { |
- if (!net::CanStripTrailingSlash(url)) |
+ if (!url_formatter::CanStripTrailingSlash(url)) |
return formatted_url; |
const base::string16 url_with_path(formatted_url + base::char16('/')); |
return (AutocompleteInput::Parse(formatted_url, std::string(), |