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

Unified Diff: chrome/browser/android/provider/run_on_ui_thread_blocking.h

Issue 1095243002: [chrome/browser/android] 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/android/provider/run_on_ui_thread_blocking.h
diff --git a/chrome/browser/android/provider/run_on_ui_thread_blocking.h b/chrome/browser/android/provider/run_on_ui_thread_blocking.h
index 04ea537928c7d2b7cc03b86df6084e2f61bc6391..b43410e13091336868d32c3e8f5db8be38c2b50b 100644
--- a/chrome/browser/android/provider/run_on_ui_thread_blocking.h
+++ b/chrome/browser/android/provider/run_on_ui_thread_blocking.h
@@ -30,7 +30,7 @@ class RunOnUIThreadBlocking {
template <typename Signature>
static void RunOnUIThread(base::Callback<Signature> runnable,
base::WaitableEvent* finished) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
runnable.Run();
finished->Signal();
}

Powered by Google App Engine
This is Rietveld 408576698