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

Unified Diff: android_webview/browser/net/aw_url_request_context_getter.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/net/aw_url_request_context_getter.cc
diff --git a/android_webview/browser/net/aw_url_request_context_getter.cc b/android_webview/browser/net/aw_url_request_context_getter.cc
index ca1c5617550be34d808d025fcbb0a9d38a6b7d3e..0d9c5fde69039f8d1c5281eeecb01a8322747388 100644
--- a/android_webview/browser/net/aw_url_request_context_getter.cc
+++ b/android_webview/browser/net/aw_url_request_context_getter.cc
@@ -181,14 +181,14 @@ AwURLRequestContextGetter::AwURLRequestContextGetter(
net_log_(new net::NetLog()) {
proxy_config_service_ = config_service.Pass();
// CreateSystemProxyConfigService for Android must be called on main thread.
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
}
AwURLRequestContextGetter::~AwURLRequestContextGetter() {
}
void AwURLRequestContextGetter::InitializeURLRequestContext() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
DCHECK(!url_request_context_);
net::URLRequestContextBuilder builder;
@@ -248,7 +248,7 @@ void AwURLRequestContextGetter::InitializeURLRequestContext() {
}
net::URLRequestContext* AwURLRequestContextGetter::GetURLRequestContext() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!url_request_context_)
InitializeURLRequestContext();

Powered by Google App Engine
This is Rietveld 408576698