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

Unified Diff: content/common/pepper_plugin_registry.cc

Issue 11359097: Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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
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;

Powered by Google App Engine
This is Rietveld 408576698