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

Unified Diff: content/browser/indexed_db/leveldb/leveldb_database.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
Index: content/browser/indexed_db/leveldb/leveldb_database.cc
diff --git a/content/browser/indexed_db/leveldb/leveldb_database.cc b/content/browser/indexed_db/leveldb/leveldb_database.cc
index e6a599b8d6141a16abfa3e9f40fcf5fa0926d6ba..fa62e1c96c67edb0fd9a2a9d3f51b3c848788ad5 100644
--- a/content/browser/indexed_db/leveldb/leveldb_database.cc
+++ b/content/browser/indexed_db/leveldb/leveldb_database.cc
@@ -170,7 +170,7 @@ static int CheckFreeSpace(const char* const type,
? INT_MAX
: free_disk_space_in_k_bytes;
const uint64 histogram_max = static_cast<uint64>(1e9);
- COMPILE_ASSERT(histogram_max <= INT_MAX, histogram_max_too_big);
+ static_assert(histogram_max <= INT_MAX, "histogram_max too big");
base::Histogram::FactoryGet(name,
1,
histogram_max,
« no previous file with comments | « content/browser/indexed_db/indexed_db_leveldb_coding.cc ('k') | content/browser/power_profiler/power_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698