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

Unified Diff: chrome/test/base/testing_profile.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
« no previous file with comments | « chrome/renderer/net/net_error_helper.cc ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 81e7b518961f9e9856948376b00d4c8658fb42fb..9d254cb49f3b89bf7cc65bc3a509c6f6920244e5 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -204,7 +204,6 @@ scoped_ptr<KeyedService> BuildInMemoryURLIndex(
ServiceAccessType::IMPLICIT_ACCESS),
TemplateURLServiceFactory::GetForProfile(profile),
content::BrowserThread::GetBlockingPool(), profile->GetPath(),
- profile->GetPrefs()->GetString(prefs::kAcceptLanguages),
SchemeSet()));
in_memory_url_index->Init();
return std::move(in_memory_url_index);
@@ -216,7 +215,6 @@ scoped_ptr<KeyedService> BuildBookmarkModel(content::BrowserContext* context) {
new BookmarkModel(make_scoped_ptr(new ChromeBookmarkClient(
profile, ManagedBookmarkServiceFactory::GetForProfile(profile)))));
bookmark_model->Load(profile->GetPrefs(),
- profile->GetPrefs()->GetString(prefs::kAcceptLanguages),
profile->GetPath(),
profile->GetIOTaskRunner(),
content::BrowserThread::GetMessageLoopProxyForThread(
@@ -547,8 +545,7 @@ bool TestingProfile::CreateHistoryService(bool delete_file, bool no_db) {
HistoryServiceFactory::GetInstance()->SetTestingFactoryAndUse(
this, BuildHistoryService));
if (!history_service->Init(
- no_db, GetPrefs()->GetString(prefs::kAcceptLanguages),
- history::HistoryDatabaseParamsForPath(GetPath()))) {
+ no_db, history::HistoryDatabaseParamsForPath(GetPath()))) {
HistoryServiceFactory::GetInstance()->SetTestingFactory(this, nullptr);
return false;
}
« no previous file with comments | « chrome/renderer/net/net_error_helper.cc ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698