Index: chrome/common/pepper_plugin_registry.cc |
diff --git a/chrome/common/pepper_plugin_registry.cc b/chrome/common/pepper_plugin_registry.cc |
index 963f24894031f9b30a0fd2472727c7dffaed172b..5614d860a51645d4698cc74f9384518fbfe20da5 100644 |
--- a/chrome/common/pepper_plugin_registry.cc |
+++ b/chrome/common/pepper_plugin_registry.cc |
@@ -121,6 +121,18 @@ void PepperPluginRegistry::GetPluginInfoFromSwitch( |
for (size_t j = 1; j < parts.size(); ++j) |
plugin.mime_types.push_back(parts[j]); |
+ // Empty description is not allowed so use the plugin base name if none is |
jam
2011/01/19 20:22:09
this is not the case anymore, right?
pastarmovj
2011/01/19 23:39:17
Done.
|
+ // provided. |
+ if (plugin.type_descriptions.length() == 0) { |
+#if defined(OS_WIN) |
+ plugin.type_descriptions = |
+ UTF16ToUTF8(plugin.path.BaseName().RemoveExtension().value()); |
+#else |
+ plugin.type_descriptions = |
+ plugin.path.BaseName().RemoveExtension().value(); |
+#endif |
+ } |
+ |
plugins->push_back(plugin); |
} |
} |