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

Unified Diff: chrome/browser/notifications/desktop_notification_service_factory.cc

Issue 1102353003: [chrome/browser/notifications] favor DCHECK_CURRENTLY_ON for better logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/notifications/desktop_notification_service_factory.cc
diff --git a/chrome/browser/notifications/desktop_notification_service_factory.cc b/chrome/browser/notifications/desktop_notification_service_factory.cc
index 4d8351ca8736dcfb05d48ce9ffff2be65d4fd62f..5bc70873edcfaddedf9111bb1f2e8f91cefcdaa2 100644
--- a/chrome/browser/notifications/desktop_notification_service_factory.cc
+++ b/chrome/browser/notifications/desktop_notification_service_factory.cc
@@ -16,7 +16,7 @@ using content::BrowserThread;
// static
DesktopNotificationService* DesktopNotificationServiceFactory::GetForProfile(
Profile* profile) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
return static_cast<DesktopNotificationService*>(
GetInstance()->GetServiceForBrowserContext(profile, true));
}

Powered by Google App Engine
This is Rietveld 408576698