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

Unified Diff: net/dns/dns_session.cc

Issue 826973002: replace COMPILE_ASSERT with static_assert in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: apply 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 | « net/dns/dns_config_service_posix.cc ('k') | net/http/http_auth.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_session.cc
diff --git a/net/dns/dns_session.cc b/net/dns/dns_session.cc
index 0b6292e8e36c67f4a53adb7c34572c8111cc8ebe..47dcefa1c579c3aa0f1e73bbd7a7b13d1d938ffb 100644
--- a/net/dns/dns_session.cc
+++ b/net/dns/dns_session.cc
@@ -272,8 +272,8 @@ base::TimeDelta DnsSession::NextTimeoutFromHistogram(unsigned server_index,
int attempt) {
DCHECK_LT(server_index, server_stats_.size());
- COMPILE_ASSERT(std::numeric_limits<base::HistogramBase::Count>::is_signed,
- histogram_base_count_assumed_to_be_signed);
+ static_assert(std::numeric_limits<base::HistogramBase::Count>::is_signed,
+ "histogram base count assumed to be signed");
// Use fixed percentile of observed samples.
const base::SampleVector& samples =
« no previous file with comments | « net/dns/dns_config_service_posix.cc ('k') | net/http/http_auth.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698