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

Unified Diff: android_webview/browser/renderer_host/print_manager.cc

Issue 1013843002: favor DCHECK_CURRENTLY_ON for better logs in android_webview/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change a few more Created 5 years, 9 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: android_webview/browser/renderer_host/print_manager.cc
diff --git a/android_webview/browser/renderer_host/print_manager.cc b/android_webview/browser/renderer_host/print_manager.cc
index ba29619b17b6014526a92b9ddd9d9e2967b69618..56a96f080574c858d2965e75294a8b1c74a43228 100644
--- a/android_webview/browser/renderer_host/print_manager.cc
+++ b/android_webview/browser/renderer_host/print_manager.cc
@@ -91,7 +91,7 @@ void PrintManager::OnDidGetDocumentCookie(int cookie) {
void PrintManager::OnGetDefaultPrintSettings(IPC::Message* reply_msg) {
// Unlike the printing_message_filter, we do process this in ui thread
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
OnGetDefaultPrintSettingsReply(reply_msg);
}
@@ -142,7 +142,7 @@ void PrintManager::OnPrintingFailed(int cookie) {
}
bool PrintManager::PrintNow() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (printing_)
return false;
« no previous file with comments | « android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698