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

Unified Diff: android_webview/browser/aw_form_database_service.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/aw_form_database_service.cc
diff --git a/android_webview/browser/aw_form_database_service.cc b/android_webview/browser/aw_form_database_service.cc
index 4cdba64366ec436a39ebd5bce85d57206abae221..b1020bab7ccc0b3504aac25dbc5f5e21fd058e24 100644
--- a/android_webview/browser/aw_form_database_service.cc
+++ b/android_webview/browser/aw_form_database_service.cc
@@ -49,7 +49,7 @@ AwFormDatabaseService::~AwFormDatabaseService() {
}
void AwFormDatabaseService::Shutdown() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
DCHECK(result_map_.empty());
// TODO(sgurun) we don't run into this logic right now,
// but if we do, then we need to implement cancellation
@@ -107,7 +107,7 @@ void AwFormDatabaseService::OnWebDataServiceRequestDone(
WebDataServiceBase::Handle h,
const WDTypedResult* result) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
+ DCHECK_CURRENTLY_ON(BrowserThread::DB);
bool has_form_data = false;
if (result) {
DCHECK_EQ(AUTOFILL_VALUE_RESULT, result->GetType());
« no previous file with comments | « android_webview/browser/aw_contents_client_bridge_base.cc ('k') | android_webview/browser/aw_login_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698