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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h

Issue 794683005: replace COMPILE_ASSERT with static_assert in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting fixup Created 6 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 side-by-side diff with in-line comments
Download patch
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
index 1a9be398ceec667a707fac934b5871cba34d7c26..3608f97bd12acfecb88c28985f05aa4efe096733 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
@@ -42,8 +42,9 @@ const unsigned int kNumDaysInHistory = 60;
// The number of days of bandwidth usage statistics that are presented.
const unsigned int kNumDaysInHistorySummary = 30;
-COMPILE_ASSERT(kNumDaysInHistorySummary <= kNumDaysInHistory,
- DataReductionProxySettings_summary_too_long);
+static_assert(kNumDaysInHistorySummary <= kNumDaysInHistory,
+ "kNumDaysInHistorySummary should be no larger than "
+ "kNumDaysInHistory");
// Values of the UMA DataReductionProxy.StartupState histogram.
// This enum must remain synchronized with DataReductionProxyStartupState
« no previous file with comments | « components/crash/browser/crash_handler_host_linux.cc ('k') | components/devtools_bridge/socket_tunnel_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698