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

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

Issue 8687014: Remove a few static initializers. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 9 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
« no previous file with comments | « webkit/plugins/npapi/plugin_group.cc ('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 ef2dd7ec1650d0c0ed1e552f79b7fcb55e348bf1..f12ce5c86bdbba359013ba79df1c584d76cb5c3e 100644
--- a/webkit/plugins/npapi/plugin_list.cc
+++ b/webkit/plugins/npapi/plugin_list.cc
@@ -75,19 +75,19 @@ static const VersionRangeDefinition kSilverlightVersionRange[] = {
// Similarly, try and share the group definition for plug-ins that are
// very consistent across OS'es.
-static const PluginGroupDefinition kFlashDefinition = {
- "adobe-flash-player", "Flash", "Shockwave Flash", kFlashVersionRange,
- arraysize(kFlashVersionRange), "http://get.adobe.com/flashplayer/" };
-
-static const PluginGroupDefinition kShockwaveDefinition = {
- "shockwave", PluginGroup::kShockwaveGroupName, "Shockwave for Director",
- kShockwaveVersionRange, arraysize(kShockwaveVersionRange),
- "http://www.adobe.com/shockwave/download/" };
-
-static const PluginGroupDefinition kSilverlightDefinition = {
- "silverlight", PluginGroup::kSilverlightGroupName, "Silverlight",
- kSilverlightVersionRange, arraysize(kSilverlightVersionRange),
- "http://www.microsoft.com/getsilverlight/" };
+#define kFlashDefinition { \
Bernhard Bauer 2011/11/29 00:29:21 Does this mean that arrays are okay, but POD struc
Nico 2011/11/29 00:31:39 It's still a POD struct, it's just that the array
+ "adobe-flash-player", "Flash", "Shockwave Flash", kFlashVersionRange,\
+ arraysize(kFlashVersionRange), "http://get.adobe.com/flashplayer/" }
+
+#define kShockwaveDefinition { \
+ "shockwave", PluginGroup::kShockwaveGroupName, "Shockwave for Director", \
+ kShockwaveVersionRange, arraysize(kShockwaveVersionRange), \
+ "http://www.adobe.com/shockwave/download/" }
+
+#define kSilverlightDefinition { \
+ "silverlight", PluginGroup::kSilverlightGroupName, "Silverlight", \
+ kSilverlightVersionRange, arraysize(kSilverlightVersionRange), \
+ "http://www.microsoft.com/getsilverlight/" }
#if defined(OS_MACOSX)
// Plugin Groups for Mac.
« no previous file with comments | « webkit/plugins/npapi/plugin_group.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698