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

Unified Diff: chrome/browser/extensions/api/bookmarks/bookmarks_api.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: chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
diff --git a/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc b/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
index a59ad279b3dec4e52323d6ec7a6c5c44079acd67..8dce0acdae802eb5bceb53e7e1c107f7c0c3b474 100644
--- a/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
+++ b/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
@@ -519,8 +519,6 @@ bool BookmarksSearchFunction::RunOnReady() {
bookmarks::Search::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
- PrefService* prefs = user_prefs::UserPrefs::Get(GetProfile());
- std::string lang = prefs->GetString(prefs::kAcceptLanguages);
std::vector<const BookmarkNode*> nodes;
if (params->query.as_string) {
::bookmarks::QueryFields query;
@@ -530,7 +528,6 @@ bool BookmarksSearchFunction::RunOnReady() {
BookmarkModelFactory::GetForProfile(GetProfile()),
query,
std::numeric_limits<int>::max(),
- lang,
&nodes);
} else {
DCHECK(params->query.as_object);
@@ -549,7 +546,6 @@ bool BookmarksSearchFunction::RunOnReady() {
BookmarkModelFactory::GetForProfile(GetProfile()),
query,
std::numeric_limits<int>::max(),
- lang,
&nodes);
}

Powered by Google App Engine
This is Rietveld 408576698