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

Unified Diff: chrome/browser/chromeos/system_logs/debug_daemon_log_source.cc

Issue 1049873005: [chrome/browser/chromeos/] 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/chromeos/system_logs/debug_daemon_log_source.cc
diff --git a/chrome/browser/chromeos/system_logs/debug_daemon_log_source.cc b/chrome/browser/chromeos/system_logs/debug_daemon_log_source.cc
index d1780f924c33f7360b7c118c5dc4e761262b4890..263d03cb4383400d88b410081bee0b9d379dd798 100644
--- a/chrome/browser/chromeos/system_logs/debug_daemon_log_source.cc
+++ b/chrome/browser/chromeos/system_logs/debug_daemon_log_source.cc
@@ -39,7 +39,7 @@ DebugDaemonLogSource::DebugDaemonLogSource(bool scrub)
DebugDaemonLogSource::~DebugDaemonLogSource() {}
void DebugDaemonLogSource::Fetch(const SysLogsSourceCallback& callback) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
DCHECK(!callback.is_null());
DCHECK(callback_.is_null());
@@ -77,7 +77,7 @@ void DebugDaemonLogSource::Fetch(const SysLogsSourceCallback& callback) {
void DebugDaemonLogSource::OnGetRoutes(bool succeeded,
const std::vector<std::string>& routes) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
if (succeeded)
(*response_)[kRoutesKeyName] = JoinString(routes, '\n');
@@ -88,7 +88,7 @@ void DebugDaemonLogSource::OnGetRoutes(bool succeeded,
void DebugDaemonLogSource::OnGetNetworkStatus(bool succeeded,
const std::string& status) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
if (succeeded)
(*response_)[kNetworkStatusKeyName] = status;
« no previous file with comments | « chrome/browser/chromeos/system_logs/dbus_log_source.cc ('k') | chrome/browser/chromeos/system_logs/device_event_log_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698