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

Unified Diff: chrome/browser/plugins/plugin_finder.cc

Issue 1862513003: Remove NPAPI from browser and utility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/browser/plugins/plugin_finder.h ('k') | chrome/browser/plugins/plugin_info_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugin_finder.cc
diff --git a/chrome/browser/plugins/plugin_finder.cc b/chrome/browser/plugins/plugin_finder.cc
index e51a2643f3f9e95e37726a33eb876135d6c8c76e..23fe235c2240154fe473fef2129c235375fca123 100644
--- a/chrome/browser/plugins/plugin_finder.cc
+++ b/chrome/browser/plugins/plugin_finder.cc
@@ -252,20 +252,6 @@ PluginFinder::~PluginFinder() {
STLDeleteValues(&identifier_plugin_);
}
-base::string16 PluginFinder::FindPluginName(const std::string& mime_type,
- const std::string& language) {
- base::AutoLock lock(mutex_);
-
- for (auto plugin : identifier_plugin_) {
- if (language == plugin.second->language() &&
- plugin.second->HasMimeType(mime_type)) {
- return plugin.second->name();
- }
- }
-
- return base::UTF8ToUTF16(mime_type);
-}
-
#if defined(ENABLE_PLUGIN_INSTALLATION)
bool PluginFinder::FindPlugin(
const std::string& mime_type,
@@ -342,17 +328,6 @@ void PluginFinder::ReinitializePlugins(
}
}
-base::string16 PluginFinder::FindPluginNameWithIdentifier(
- const std::string& identifier) {
- base::AutoLock lock(mutex_);
- PluginMap::const_iterator it = identifier_plugin_.find(identifier);
- base::string16 name;
- if (it != identifier_plugin_.end())
- name = it->second->name();
-
- return name.empty() ? base::UTF8ToUTF16(identifier) : name;
-}
-
scoped_ptr<PluginMetadata> PluginFinder::GetPluginMetadata(
const content::WebPluginInfo& plugin) {
base::AutoLock lock(mutex_);
« no previous file with comments | « chrome/browser/plugins/plugin_finder.h ('k') | chrome/browser/plugins/plugin_info_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698