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

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

Issue 195973002: Change DCHECK_IS_ON() to DCHECK_IS_ON (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep a comment Created 6 years, 9 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 | « cc/trees/tree_synchronizer.cc ('k') | chrome/common/logging_chrome.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « cc/trees/tree_synchronizer.cc ('k') | chrome/common/logging_chrome.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698