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

Unified Diff: components/history/core/browser/top_sites_cache.cc

Issue 842523002: base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheck2: withoutandroidchange 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: components/history/core/browser/top_sites_cache.cc
diff --git a/components/history/core/browser/top_sites_cache.cc b/components/history/core/browser/top_sites_cache.cc
index 647dd01d44528b55411e22a77b4dcc7bae525d35..124e9b2fe2afd1a78965321d0d8e37103201ddad 100644
--- a/components/history/core/browser/top_sites_cache.cc
+++ b/components/history/core/browser/top_sites_cache.cc
@@ -136,7 +136,7 @@ void TopSitesCache::CountForcedURLs() {
break;
num_forced_urls_++;
}
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
// In debug, ensure the cache user has no forced URLs pass that point.
for (size_t i = num_forced_urls_; i < top_sites_.size(); ++i) {
DCHECK(top_sites_[i].last_forced_time.is_null())

Powered by Google App Engine
This is Rietveld 408576698