| Index: chrome/browser/android/omnibox/autocomplete_controller_android.cc
|
| diff --git a/chrome/browser/android/omnibox/autocomplete_controller_android.cc b/chrome/browser/android/omnibox/autocomplete_controller_android.cc
|
| index fdea013ff9b00729451374458ea69c679dd6c916..fdf4887c22766a32ab02bb29169b6e057e2744b2 100644
|
| --- a/chrome/browser/android/omnibox/autocomplete_controller_android.cc
|
| +++ b/chrome/browser/android/omnibox/autocomplete_controller_android.cc
|
| @@ -42,6 +42,7 @@
|
| #include "components/omnibox/browser/search_provider.h"
|
| #include "components/search/search.h"
|
| #include "components/search_engines/template_url_service.h"
|
| +#include "components/url_formatter/url_formatter.h"
|
| #include "content/public/browser/notification_details.h"
|
| #include "content/public/browser/notification_service.h"
|
| #include "content/public/browser/notification_source.h"
|
| @@ -49,7 +50,6 @@
|
| #include "content/public/common/url_constants.h"
|
| #include "jni/AutocompleteController_jni.h"
|
| #include "net/base/escape.h"
|
| -#include "net/base/net_util.h"
|
| #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
|
|
|
| using base::android::AttachCurrentThread;
|
| @@ -475,8 +475,9 @@ base::string16 AutocompleteControllerAndroid::FormatURLUsingAcceptLanguages(
|
| std::string languages(
|
| profile_->GetPrefs()->GetString(prefs::kAcceptLanguages));
|
|
|
| - return net::FormatUrl(url, languages, net::kFormatUrlOmitAll,
|
| - net::UnescapeRule::SPACES, NULL, NULL, NULL);
|
| + return url_formatter::FormatUrl(
|
| + url, languages, url_formatter::kFormatUrlOmitAll,
|
| + net::UnescapeRule::SPACES, nullptr, nullptr, nullptr);
|
| }
|
|
|
| ScopedJavaLocalRef<jobject>
|
|
|