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

Unified Diff: webkit/plugins/npapi/plugin_list.cc

Issue 10066016: Fix plug-in identifier for Shockwave and add a unit test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months 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
« no previous file with comments | « webkit/plugins/npapi/plugin_list.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/plugin_list.cc
diff --git a/webkit/plugins/npapi/plugin_list.cc b/webkit/plugins/npapi/plugin_list.cc
index 260fadfefed73b20df98fe8a0f16fbee98d9eee0..5055b535514b77908c0ca066f3f18f2d6b90d3d3 100644
--- a/webkit/plugins/npapi/plugin_list.cc
+++ b/webkit/plugins/npapi/plugin_list.cc
@@ -83,12 +83,13 @@ static const VersionRangeDefinition kSilverlightVersionRange[] = {
// Similarly, try and share the group definition for plug-ins that are
// very consistent across OS'es.
#define kFlashDefinition { \
- "adobe-flash-player", "Flash", "Shockwave Flash", kFlashVersionRange,\
+ "adobe-flash-player", "Flash", "Shockwave Flash", kFlashVersionRange, \
arraysize(kFlashVersionRange) }
#define kShockwaveDefinition { \
- "shockwave", PluginGroup::kShockwaveGroupName, "Shockwave for Director", \
- kShockwaveVersionRange, arraysize(kShockwaveVersionRange) }
+ "adobe-shockwave", PluginGroup::kShockwaveGroupName, \
+ "Shockwave for Director", kShockwaveVersionRange, \
+ arraysize(kShockwaveVersionRange) }
#define kSilverlightDefinition { \
"silverlight", PluginGroup::kSilverlightGroupName, "Silverlight", \
@@ -496,6 +497,10 @@ void PluginList::GetPluginPathsToLoad(std::vector<FilePath>* plugin_paths) {
#endif
}
+const std::vector<PluginGroup*>& PluginList::GetHardcodedPluginGroups() const {
+ return hardcoded_plugin_groups_.get();
+}
+
void PluginList::SetPlugins(const std::vector<webkit::WebPluginInfo>& plugins) {
base::AutoLock lock(lock_);
« no previous file with comments | « webkit/plugins/npapi/plugin_list.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698