Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: components/omnibox/browser/history_quick_provider_unittest.cc

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/omnibox/browser/history_quick_provider_unittest.cc
diff --git a/components/omnibox/browser/history_quick_provider_unittest.cc b/components/omnibox/browser/history_quick_provider_unittest.cc
index a5e19dd28285bbb0c9b501bc3073fc1c74bc024b..b05769c0578b6ab947c8416f6ac5c078764e482b 100644
--- a/components/omnibox/browser/history_quick_provider_unittest.cc
+++ b/components/omnibox/browser/history_quick_provider_unittest.cc
@@ -182,13 +182,12 @@ class FakeAutocompleteProviderClient : public MockAutocompleteProviderClient {
bookmark_model_ = bookmarks::TestBookmarkClient::CreateModel();
if (history_dir_.CreateUniqueTempDir()) {
history_service_ = history::CreateHistoryService(
- history_dir_.path(), GetAcceptLanguages(), true);
+ history_dir_.path(), true);
}
in_memory_url_index_.reset(new InMemoryURLIndex(
bookmark_model_.get(), history_service_.get(), nullptr,
- pool_owner_.pool().get(), history_dir_.path(), GetAcceptLanguages(),
- SchemeSet()));
+ pool_owner_.pool().get(), history_dir_.path(), SchemeSet()));
in_memory_url_index_->Init();
}
@@ -212,8 +211,6 @@ class FakeAutocompleteProviderClient : public MockAutocompleteProviderClient {
return in_memory_url_index_.get();
}
- std::string GetAcceptLanguages() const override { return "en,en-US,ko"; }
-
void set_in_memory_url_index(scoped_ptr<InMemoryURLIndex> index) {
in_memory_url_index_ = std::move(index);
}
« no previous file with comments | « components/omnibox/browser/history_quick_provider.cc ('k') | components/omnibox/browser/history_url_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698