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

Unified Diff: chrome/browser/safe_browsing/client_side_detection_service.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/safe_browsing/client_side_detection_service.cc
diff --git a/chrome/browser/safe_browsing/client_side_detection_service.cc b/chrome/browser/safe_browsing/client_side_detection_service.cc
index f646379e5c6803fd3ab1879c66225b2c21b5fa83..937b120ddad59eb2373cfc2a48a364f177610105 100644
--- a/chrome/browser/safe_browsing/client_side_detection_service.cc
+++ b/chrome/browser/safe_browsing/client_side_detection_service.cc
@@ -224,7 +224,7 @@ void ClientSideDetectionService::Observe(
const content::NotificationSource& source,
const content::NotificationDetails& details) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- DCHECK(type == content::NOTIFICATION_RENDERER_PROCESS_CREATED);
+ DCHECK_EQ(content::NOTIFICATION_RENDERER_PROCESS_CREATED, type);
SendModelToProcess(
content::Source<content::RenderProcessHost>(source).ptr());
}

Powered by Google App Engine
This is Rietveld 408576698