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

Unified Diff: content/shell/browser/shell_url_request_context_getter.cc

Issue 1010963002: favor DCHECK_CURRENTLY_ON for better logs in content/{public,shell,test}/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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
« no previous file with comments | « content/shell/browser/shell_login_dialog_mac.mm ('k') | content/test/net/url_request_abort_on_end_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell_url_request_context_getter.cc
diff --git a/content/shell/browser/shell_url_request_context_getter.cc b/content/shell/browser/shell_url_request_context_getter.cc
index 626351ab2219bd422a1fab0312f60a51a74d9a11..b6218aba6601ab3931c4fd3357934083f32c8b4b 100644
--- a/content/shell/browser/shell_url_request_context_getter.cc
+++ b/content/shell/browser/shell_url_request_context_getter.cc
@@ -74,7 +74,7 @@ ShellURLRequestContextGetter::ShellURLRequestContextGetter(
net_log_(net_log),
request_interceptors_(request_interceptors.Pass()) {
// Must first be created on the UI thread.
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
std::swap(protocol_handlers_, *protocol_handlers);
@@ -103,7 +103,7 @@ net::ProxyService* ShellURLRequestContextGetter::GetProxyService() {
}
net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!url_request_context_) {
const base::CommandLine& command_line =
« no previous file with comments | « content/shell/browser/shell_login_dialog_mac.mm ('k') | content/test/net/url_request_abort_on_end_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698