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

Unified Diff: chrome/browser/feedback/system_logs/log_sources/memory_details_log_source.cc

Issue 1097083004: [chrome/browser/e*-i*] 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/feedback/system_logs/log_sources/memory_details_log_source.cc
diff --git a/chrome/browser/feedback/system_logs/log_sources/memory_details_log_source.cc b/chrome/browser/feedback/system_logs/log_sources/memory_details_log_source.cc
index c44ce22fe21b3196e73c4c60a16811bcae71ce71..39ca766ee8347d8265b1f3307ccab71474ac54c7 100644
--- a/chrome/browser/feedback/system_logs/log_sources/memory_details_log_source.cc
+++ b/chrome/browser/feedback/system_logs/log_sources/memory_details_log_source.cc
@@ -18,7 +18,7 @@ class SystemLogsMemoryHandler : public MemoryDetails {
// Sends the data to the callback.
// MemoryDetails override.
void OnDetailsAvailable() override {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
scoped_ptr<SystemLogsResponse> response(new SystemLogsResponse);
(*response)["mem_usage"] = ToLogString();
@@ -40,7 +40,7 @@ MemoryDetailsLogSource::~MemoryDetailsLogSource() {
}
void MemoryDetailsLogSource::Fetch(const SysLogsSourceCallback& callback) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
DCHECK(!callback.is_null());
scoped_refptr<SystemLogsMemoryHandler>

Powered by Google App Engine
This is Rietveld 408576698