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

Side by Side 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 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/npapi/plugin_group.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/plugins/npapi/plugin_list.h" 5 #include "webkit/plugins/npapi/plugin_list.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 static const VersionRangeDefinition kShockwaveVersionRange[] = { 68 static const VersionRangeDefinition kShockwaveVersionRange[] = {
69 { "", "", "11.6.1.629", true } 69 { "", "", "11.6.1.629", true }
70 }; 70 };
71 static const VersionRangeDefinition kSilverlightVersionRange[] = { 71 static const VersionRangeDefinition kSilverlightVersionRange[] = {
72 { "0", "4", "3.0.50611.0", false }, 72 { "0", "4", "3.0.50611.0", false },
73 { "4", "5", "", false } 73 { "4", "5", "", false }
74 }; 74 };
75 75
76 // Similarly, try and share the group definition for plug-ins that are 76 // Similarly, try and share the group definition for plug-ins that are
77 // very consistent across OS'es. 77 // very consistent across OS'es.
78 static const PluginGroupDefinition kFlashDefinition = { 78 #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
79 "adobe-flash-player", "Flash", "Shockwave Flash", kFlashVersionRange, 79 "adobe-flash-player", "Flash", "Shockwave Flash", kFlashVersionRange,\
80 arraysize(kFlashVersionRange), "http://get.adobe.com/flashplayer/" }; 80 arraysize(kFlashVersionRange), "http://get.adobe.com/flashplayer/" }
81 81
82 static const PluginGroupDefinition kShockwaveDefinition = { 82 #define kShockwaveDefinition { \
83 "shockwave", PluginGroup::kShockwaveGroupName, "Shockwave for Director", 83 "shockwave", PluginGroup::kShockwaveGroupName, "Shockwave for Director", \
84 kShockwaveVersionRange, arraysize(kShockwaveVersionRange), 84 kShockwaveVersionRange, arraysize(kShockwaveVersionRange), \
85 "http://www.adobe.com/shockwave/download/" }; 85 "http://www.adobe.com/shockwave/download/" }
86 86
87 static const PluginGroupDefinition kSilverlightDefinition = { 87 #define kSilverlightDefinition { \
88 "silverlight", PluginGroup::kSilverlightGroupName, "Silverlight", 88 "silverlight", PluginGroup::kSilverlightGroupName, "Silverlight", \
89 kSilverlightVersionRange, arraysize(kSilverlightVersionRange), 89 kSilverlightVersionRange, arraysize(kSilverlightVersionRange), \
90 "http://www.microsoft.com/getsilverlight/" }; 90 "http://www.microsoft.com/getsilverlight/" }
91 91
92 #if defined(OS_MACOSX) 92 #if defined(OS_MACOSX)
93 // Plugin Groups for Mac. 93 // Plugin Groups for Mac.
94 // Plugins are listed here as soon as vulnerabilities and solutions 94 // Plugins are listed here as soon as vulnerabilities and solutions
95 // (new versions) are published. 95 // (new versions) are published.
96 static const VersionRangeDefinition kQuicktimeVersionRange[] = { 96 static const VersionRangeDefinition kQuicktimeVersionRange[] = {
97 { "", "", "7.6.6", true } 97 { "", "", "7.6.6", true }
98 }; 98 };
99 static const VersionRangeDefinition kJavaVersionRange[] = { 99 static const VersionRangeDefinition kJavaVersionRange[] = {
100 { "0", "13.0", "12.8.0", true }, // Leopard 100 { "0", "13.0", "12.8.0", true }, // Leopard
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 } 748 }
749 return false; 749 return false;
750 } 750 }
751 751
752 PluginList::~PluginList() { 752 PluginList::~PluginList() {
753 } 753 }
754 754
755 755
756 } // namespace npapi 756 } // namespace npapi
757 } // namespace webkit 757 } // namespace webkit
OLDNEW
« 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