summaryrefslogtreecommitdiffstats
path: root/chrome/common/default_plugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/default_plugin.cc')
-rw-r--r--chrome/common/default_plugin.cc23
1 files changed, 9 insertions, 14 deletions
diff --git a/chrome/common/default_plugin.cc b/chrome/common/default_plugin.cc
index 3337c7c..61bbc87 100644
--- a/chrome/common/default_plugin.cc
+++ b/chrome/common/default_plugin.cc
@@ -10,25 +10,20 @@
namespace chrome {
void RegisterInternalDefaultPlugin() {
- const webkit::npapi::PluginVersionInfo default_plugin = {
- FilePath(webkit::npapi::kDefaultPluginLibraryName),
- L"Default Plug-in",
- L"Provides functionality for installing third-party plug-ins",
- L"1",
- L"*",
- L"",
- L"",
- {
+ const webkit::npapi::PluginEntryPoints entry_points = {
#if !defined(OS_POSIX) || defined(OS_MACOSX)
- default_plugin::NP_GetEntryPoints,
+ default_plugin::NP_GetEntryPoints,
#endif
- default_plugin::NP_Initialize,
- default_plugin::NP_Shutdown
- }
+ default_plugin::NP_Initialize,
+ default_plugin::NP_Shutdown
};
webkit::npapi::PluginList::Singleton()->RegisterInternalPlugin(
- default_plugin);
+ FilePath(webkit::npapi::kDefaultPluginLibraryName),
+ "Default Plug-in",
+ "Provides functionality for installing third-party plug-ins",
+ "*",
+ entry_points);
}
} // namespace chrome