Index: content/common/pepper_plugin_registry.cc |
diff --git a/content/common/pepper_plugin_registry.cc b/content/common/pepper_plugin_registry.cc |
index 6db31e7e8cd0277afdb6c6ae068c8b31be2f7587..457ee8f86143100d8d391a1c47acff218aa4f48a 100644 |
--- a/content/common/pepper_plugin_registry.cc |
+++ b/content/common/pepper_plugin_registry.cc |
@@ -70,6 +70,10 @@ void ComputePluginsFromCommandLine(std::vector<PepperPluginInfo>* plugins) { |
plugin.mime_types.push_back(mime_type); |
} |
+ // If the plugin name is empty, use the filename. |
+ if (plugin.name.empty()) |
+ plugin.name = UTF16ToUTF8(plugin.path.BaseName().LossyDisplayName()); |
+ |
// Command-line plugins get full permissions. |
plugin.permissions = ppapi::PERMISSION_ALL_BITS; |