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

Unified Diff: chrome/browser/history/visit_tracker.cc

Issue 815363002: replace COMPILE_ASSERT with static_assert in chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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
« no previous file with comments | « chrome/browser/external_extension_browsertest.cc ('k') | chrome/browser/internal_auth.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/visit_tracker.cc
diff --git a/chrome/browser/history/visit_tracker.cc b/chrome/browser/history/visit_tracker.cc
index fe06075c2f332e14623173726405758afc870999..c541d87f7c59d51c0af3cf0f4dda2383e1b8e6b1 100644
--- a/chrome/browser/history/visit_tracker.cc
+++ b/chrome/browser/history/visit_tracker.cc
@@ -13,8 +13,8 @@ namespace history {
// the data rather than constantly shuffle stuff around in the vector.
static const size_t kMaxItemsInTransitionList = 96;
static const size_t kResizeBigTransitionListTo = 64;
-COMPILE_ASSERT(kResizeBigTransitionListTo < kMaxItemsInTransitionList,
- max_items_must_be_larger_than_resize_to);
+static_assert(kResizeBigTransitionListTo < kMaxItemsInTransitionList,
+ "maxium number of items must be larger than we are resizing to");
VisitTracker::VisitTracker() {
}
« no previous file with comments | « chrome/browser/external_extension_browsertest.cc ('k') | chrome/browser/internal_auth.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698