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

Unified Diff: components/history/core/browser/history_service.h

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/history/core/browser/history_service.h
diff --git a/components/history/core/browser/history_service.h b/components/history/core/browser/history_service.h
index d852485d4fca652c4876025021c854ded35fb6a3..c830e25f1bcebf18ea827bb800d4c454ee078fb8 100644
--- a/components/history/core/browser/history_service.h
+++ b/components/history/core/browser/history_service.h
@@ -99,11 +99,9 @@ class HistoryService : public syncer::SyncableService, public KeyedService {
// Initializes the history service, returning true on success. On false, do
// not call any other functions. The given directory will be used for storing
- // the history files. |languages| is a comma-separated list of languages to
- // use when interpreting URLs, it must not be empty (except during testing).
- bool Init(const std::string& languages,
- const HistoryDatabaseParams& history_database_params) {
- return Init(false, languages, history_database_params);
+ // the history files.
+ bool Init(const HistoryDatabaseParams& history_database_params) {
+ return Init(false, history_database_params);
}
// Triggers the backend to load if it hasn't already, and then returns whether
@@ -568,9 +566,7 @@ class HistoryService : public syncer::SyncableService, public KeyedService {
friend class ::SyncBookmarkDataTypeControllerTest;
friend class ::TestingProfile;
friend scoped_ptr<HistoryService> CreateHistoryService(
- const base::FilePath& history_dir,
- const std::string& accept_languages,
- bool create_db);
+ const base::FilePath& history_dir, bool create_db);
// Called on shutdown, this will tell the history backend to complete and
// will release pointers to it. No other functions should be called once
@@ -585,9 +581,7 @@ class HistoryService : public syncer::SyncableService, public KeyedService {
// Low-level Init(). Same as the public version, but adds a |no_db| parameter
// that is only set by unittests which causes the backend to not init its DB.
- bool Init(bool no_db,
- const std::string& languages,
- const HistoryDatabaseParams& history_database_params);
+ bool Init(bool no_db, const HistoryDatabaseParams& history_database_params);
// Called by the HistoryURLProvider class to schedule an autocomplete, it
// will be called back on the internal history thread with the history
« no previous file with comments | « components/history/core/browser/history_querying_unittest.cc ('k') | components/history/core/browser/history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698