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

Unified Diff: chrome/browser/jumplist_win.cc

Issue 2063863002: Use DCHECKs when observing only a single notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: chrome/browser/jumplist_win.cc
diff --git a/chrome/browser/jumplist_win.cc b/chrome/browser/jumplist_win.cc
index e5db11b4449bfae211ff77b9e0776c7b03f84392..57dccaf49b5f304ffc0df24789d11c1a18013728 100644
--- a/chrome/browser/jumplist_win.cc
+++ b/chrome/browser/jumplist_win.cc
@@ -318,7 +318,7 @@ void JumpList::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
DCHECK(CalledOnValidThread());
- DCHECK_EQ(type, chrome::NOTIFICATION_PROFILE_DESTROYED);
+ DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type);
// Profile was destroyed, do clean-up.
Terminate();
}

Powered by Google App Engine
This is Rietveld 408576698