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

Unified Diff: components/search_engines/template_url_prepopulate_data.cc

Issue 2623833005: Revert of Make extensions DSE persistent in browser prefs (Closed)
Patch Set: Created 3 years, 11 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/search_engines/template_url_prepopulate_data.cc
diff --git a/components/search_engines/template_url_prepopulate_data.cc b/components/search_engines/template_url_prepopulate_data.cc
index 38301ce6a64f3dbf6db1452a827bc7d8a26a325e..56d76a6829ab2a3e72169fe828020b6626cd5cb1 100644
--- a/components/search_engines/template_url_prepopulate_data.cc
+++ b/components/search_engines/template_url_prepopulate_data.cc
@@ -1041,18 +1041,6 @@
return GetPrepopulationSetFromCountryID(GetCountryIDFromPrefs(prefs));
}
-std::unique_ptr<TemplateURLData> GetPrepopulatedEngine(PrefService* prefs,
- int prepopulated_id) {
- size_t default_index;
- auto engines =
- TemplateURLPrepopulateData::GetPrepopulatedEngines(prefs, &default_index);
- for (auto& engine : engines) {
- if (engine->prepopulate_id == prepopulated_id)
- return std::move(engine);
- }
- return nullptr;
-}
-
#if defined(OS_ANDROID)
std::vector<std::unique_ptr<TemplateURLData>> GetLocalPrepopulatedEngines(
« no previous file with comments | « components/search_engines/template_url_prepopulate_data.h ('k') | components/search_engines/template_url_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698