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

Unified Diff: content/common/pepper_plugin_list.cc

Issue 791923003: replace COMPILE_ASSERT with static_assert in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixups Created 5 years, 11 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 | « content/common/input/web_input_event_traits.cc ('k') | content/common/sandbox_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/pepper_plugin_list.cc
diff --git a/content/common/pepper_plugin_list.cc b/content/common/pepper_plugin_list.cc
index 4526620145d3cf1a43e3d5485bce3677f9a69efb..aec28801f246b86cde355ae528ae4040fa32251c 100644
--- a/content/common/pepper_plugin_list.cc
+++ b/content/common/pepper_plugin_list.cc
@@ -31,9 +31,9 @@ void ComputePluginsFromCommandLine(std::vector<PepperPluginInfo>* plugins) {
// NOTE: In theory we could have unlimited number of plugins registered in
// command line. But in practice, 64 plugins should be more than enough.
static uint64 skip_file_check_flags = 0;
- COMPILE_ASSERT(
+ static_assert(
kMaxPluginsToRegisterFromCommandLine <= sizeof(skip_file_check_flags) * 8,
- max_plugins_to_register_from_command_line_exceeds_limit);
+ "max plugins to register from command line exceeds limit");
bool out_of_process = true;
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
« no previous file with comments | « content/common/input/web_input_event_traits.cc ('k') | content/common/sandbox_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698