Index: chrome/browser/history/top_sites_cache.cc |
diff --git a/chrome/browser/history/top_sites_cache.cc b/chrome/browser/history/top_sites_cache.cc |
index 4448c89e939bba9484294042cd3078c5cd878e10..9b0f5e45c1e93c81796f624332db0824464da059 100644 |
--- a/chrome/browser/history/top_sites_cache.cc |
+++ b/chrome/browser/history/top_sites_cache.cc |
@@ -136,13 +136,13 @@ void TopSitesCache::CountForcedURLs() { |
break; |
num_forced_urls_++; |
} |
+#if DCHECK_IS_ON |
// In debug, ensure the cache user has no forced URLs pass that point. |
- if (DCHECK_IS_ON()) { |
- for (size_t i = num_forced_urls_; i < top_sites_.size(); ++i) { |
- DCHECK(top_sites_[i].last_forced_time.is_null()) |
- << "All the forced URLs must appear before non-forced URLs."; |
- } |
+ for (size_t i = num_forced_urls_; i < top_sites_.size(); ++i) { |
+ DCHECK(top_sites_[i].last_forced_time.is_null()) |
+ << "All the forced URLs must appear before non-forced URLs."; |
} |
+#endif |
} |
void TopSitesCache::GenerateCanonicalURLs() { |