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

Unified Diff: content/browser/frame_host/navigation_controller_impl.cc

Issue 1213193003: Remove DCHECK_IMPLIES and CHECK_IMPLIES (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/frame_host/navigation_controller_impl.cc
diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
index 850bdf56a48c29c36f94e49eb872e4040fd3e169..8be9251cfa256b5e29167034df03b3294e0b2dfb 100644
--- a/content/browser/frame_host/navigation_controller_impl.cc
+++ b/content/browser/frame_host/navigation_controller_impl.cc
@@ -1688,7 +1688,7 @@ void NavigationControllerImpl::InsertOrReplaceEntry(
DiscardNonCommittedEntriesInternal();
int current_size = static_cast<int>(entries_.size());
- DCHECK_IMPLIES(replace, current_size > 0);
+ DCHECK(!replace || current_size > 0);
if (current_size > 0) {
// Prune any entries which are in front of the current entry.
« no previous file with comments | « content/browser/android/in_process/synchronous_compositor_impl.cc ('k') | content/browser/frame_host/navigation_entry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698