summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/plugin_list.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/plugins/plugin_list.cc')
-rw-r--r--webkit/glue/plugins/plugin_list.cc43
1 files changed, 1 insertions, 42 deletions
diff --git a/webkit/glue/plugins/plugin_list.cc b/webkit/glue/plugins/plugin_list.cc
index 3adb0eb..69315b2 100644
--- a/webkit/glue/plugins/plugin_list.cc
+++ b/webkit/glue/plugins/plugin_list.cc
@@ -15,8 +15,6 @@
#include "webkit/glue/webkit_glue.h"
#include "googleurl/src/gurl.h"
-#define kNpGoogleNaClPlugin (FILE_PATH_LITERAL("npgooglenaclplugin"))
-
namespace NPAPI {
base::LazyInstance<PluginList> g_singleton(base::LINKER_INITIALIZED);
@@ -115,8 +113,7 @@ bool PluginList::CreateWebPluginInfo(const PluginVersionInfo& pvi,
return true;
}
-PluginList::PluginList() : plugins_loaded_(false),
- use_internal_nacl_(false) {
+PluginList::PluginList() : plugins_loaded_(false) {
PlatformInit();
#if defined(OS_WIN)
@@ -171,10 +168,6 @@ void PluginList::LoadPlugins(bool refresh) {
LoadPluginsFromDir(directories_to_scan[i], &new_plugins);
}
- if (use_internal_nacl_) {
- LoadPlugin(FilePath(kNaClPluginLibraryName), &new_plugins);
- }
-
if (webkit_glue::IsDefaultPluginEnabled())
LoadPlugin(FilePath(kDefaultPluginLibraryName), &new_plugins);
@@ -216,20 +209,6 @@ void PluginList::LoadPlugin(const FilePath &path,
plugins->push_back(plugin_info);
}
-bool PluginList::ShouldLoadPlugin(const WebPluginInfo& info,
- std::vector<WebPluginInfo>* plugins) {
- FilePath::StringType filename =
- StringToLowerASCII(info.path.BaseName().value());
-
- // Don't load the external version of NaCl when we need to use
- // the internal one.
- if (use_internal_nacl_) {
- if (std::wstring::npos != filename.find(kNpGoogleNaClPlugin))
- return false;
- }
- return PlatformShouldLoadPlugin(info, plugins);
-}
-
bool PluginList::FindPlugin(const std::string& mime_type,
bool allow_wildcard,
WebPluginInfo* info) {
@@ -348,24 +327,4 @@ void PluginList::Shutdown() {
// TODO
}
-// static
-void PluginList::UseInternalNaCl(PluginEntryPoints* entry_points) {
- // We access the singleton directly, and not through Singleton(), since
- // we don't want LoadPlugins() to be called.
- g_singleton.Pointer()->use_internal_nacl_ = true;
-
- const NPAPI::PluginVersionInfo nacl_plugin_info = {
- FilePath(kNaClPluginLibraryName),
- L"Native Client",
- L"Statically linked NaCl",
- L"1, 0, 0, 1",
- L"application/x-nacl-srpc",
- L"",
- L"",
- *entry_points
- };
-
- Singleton()->RegisterInternalPlugin(nacl_plugin_info);
-}
-
} // namespace NPAPI