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: chrome/browser/search_engines/template_url_service.cc

Issue 63153003: mac: Prepare for -Wunused-functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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/search_engines/template_url_service.cc
diff --git a/chrome/browser/search_engines/template_url_service.cc b/chrome/browser/search_engines/template_url_service.cc
index c5d184efa3a4ef2253c20a52fd8b95e03ba9cc0e..9bb5055e94e6dcc9176efc6efa3222fa86d639c0 100644
--- a/chrome/browser/search_engines/template_url_service.cc
+++ b/chrome/browser/search_engines/template_url_service.cc
@@ -232,33 +232,6 @@ void LogDuplicatesHistogram(
UMA_HISTOGRAM_COUNTS_100("Search.SearchEngineDuplicateCounts", num_dupes);
}
-typedef std::vector<TemplateURLService::ExtensionKeyword> ExtensionKeywords;
-
-#if !defined(OS_ANDROID)
-// Extract all installed Omnibox Extensions.
-ExtensionKeywords GetExtensionKeywords(Profile* profile) {
- DCHECK(profile);
- ExtensionService* extension_service = profile->GetExtensionService();
- DCHECK(extension_service);
- const ExtensionSet* extensions = extension_service->extensions();
- ExtensionKeywords extension_keywords;
- for (ExtensionSet::const_iterator it = extensions->begin();
- it != extensions->end(); ++it) {
- const std::string& keyword = extensions::OmniboxInfo::GetKeyword(*it);
- if (!keyword.empty()) {
- extension_keywords.push_back(TemplateURLService::ExtensionKeyword(
- (*it)->id(), (*it)->name(), keyword));
- }
- }
- return extension_keywords;
-}
-#else
-// Extensions are not supported.
-ExtensionKeywords GetExtensionKeywords(Profile* profile) {
- return ExtensionKeywords();
-}
-#endif
-
} // namespace
« no previous file with comments | « chrome/browser/renderer_host/pepper/pepper_talk_host.cc ('k') | chrome/browser/signin/signin_internals_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698