Index: ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc |
diff --git a/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc b/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc |
index d7967ccf3312d01f510ad292b9d36e23ea28e298..867ae8a76ac86153cc75d555bfe4c6237e74b344 100644 |
--- a/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc |
+++ b/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc |
@@ -10,13 +10,11 @@ |
#include "components/keyed_service/core/service_access_type.h" |
#include "components/keyed_service/ios/browser_state_dependency_manager.h" |
#include "components/omnibox/browser/in_memory_url_index.h" |
-#include "components/prefs/pref_service.h" |
#include "ios/chrome/browser/bookmarks/bookmark_model_factory.h" |
#include "ios/chrome/browser/browser_state/browser_state_otr_helper.h" |
#include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
#include "ios/chrome/browser/chrome_url_constants.h" |
#include "ios/chrome/browser/history/history_service_factory.h" |
-#include "ios/chrome/browser/pref_names.h" |
#include "ios/chrome/browser/search_engines/template_url_service_factory.h" |
#include "ios/web/public/web_thread.h" |
@@ -38,7 +36,6 @@ scoped_ptr<KeyedService> BuildInMemoryURLIndex(web::BrowserState* context) { |
browser_state, ServiceAccessType::IMPLICIT_ACCESS), |
ios::TemplateURLServiceFactory::GetForBrowserState(browser_state), |
web::WebThread::GetBlockingPool(), browser_state->GetStatePath(), |
- browser_state->GetPrefs()->GetString(prefs::kAcceptLanguages), |
schemes_to_whilelist)); |
in_memory_url_index->Init(); |
return std::move(in_memory_url_index); |