diff options
author | sdefresne <sdefresne@chromium.org> | 2016-02-18 02:35:58 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-18 10:36:57 +0000 |
commit | e5ca870ce113eb9f6c7b804b5707f606f85c389e (patch) | |
tree | 5c08f40df770529a0fadd3c74d7553b4bbee6051 /ios/chrome/browser/ios_chrome_io_thread.mm | |
parent | a8b3cb0b38cab9abdb57e161989bbdd558581a31 (diff) | |
download | chromium_src-e5ca870ce113eb9f6c7b804b5707f606f85c389e.zip chromium_src-e5ca870ce113eb9f6c7b804b5707f606f85c389e.tar.gz chromium_src-e5ca870ce113eb9f6c7b804b5707f606f85c389e.tar.bz2 |
Rename DCHECK_CURRENTLY_ON_WEB_THREAD to DCHECK_CURRENTLY_ON.
Chrome on iOS no longer has any dependency on content/ so there is no
risk of collision between the two macros.
Keep the DCHECK_CURRENTLY_ON_WEB_THREAD name as an alias until all the
downstream code has been ported to use the new name.
Port all client code to use the new name using tools/git/mffr.py and
"git cl format".
BUG=438202
Review URL: https://codereview.chromium.org/1713453002
Cr-Commit-Position: refs/heads/master@{#376135}
Diffstat (limited to 'ios/chrome/browser/ios_chrome_io_thread.mm')
-rw-r--r-- | ios/chrome/browser/ios_chrome_io_thread.mm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ios/chrome/browser/ios_chrome_io_thread.mm b/ios/chrome/browser/ios_chrome_io_thread.mm index 7dbb7bd..d29695a 100644 --- a/ios/chrome/browser/ios_chrome_io_thread.mm +++ b/ios/chrome/browser/ios_chrome_io_thread.mm @@ -283,7 +283,7 @@ SystemURLRequestContextGetter::SystemURLRequestContextGetter( SystemURLRequestContextGetter::~SystemURLRequestContextGetter() {} net::URLRequestContext* SystemURLRequestContextGetter::GetURLRequestContext() { - DCHECK_CURRENTLY_ON_WEB_THREAD(web::WebThread::IO); + DCHECK_CURRENTLY_ON(web::WebThread::IO); DCHECK(io_thread_->globals()->system_request_context.get()); return io_thread_->globals()->system_request_context.get(); @@ -343,12 +343,12 @@ IOSChromeIOThread::~IOSChromeIOThread() { } IOSChromeIOThread::Globals* IOSChromeIOThread::globals() { - DCHECK_CURRENTLY_ON_WEB_THREAD(web::WebThread::IO); + DCHECK_CURRENTLY_ON(web::WebThread::IO); return globals_; } void IOSChromeIOThread::SetGlobalsForTesting(Globals* globals) { - DCHECK_CURRENTLY_ON_WEB_THREAD(web::WebThread::IO); + DCHECK_CURRENTLY_ON(web::WebThread::IO); DCHECK(!globals || !globals_); globals_ = globals; } @@ -358,7 +358,7 @@ net_log::ChromeNetLog* IOSChromeIOThread::net_log() { } void IOSChromeIOThread::ChangedToOnTheRecord() { - DCHECK_CURRENTLY_ON_WEB_THREAD(web::WebThread::UI); + DCHECK_CURRENTLY_ON(web::WebThread::UI); web::WebThread::PostTask( web::WebThread::IO, FROM_HERE, base::Bind(&IOSChromeIOThread::ChangedToOnTheRecordOnIOThread, @@ -367,7 +367,7 @@ void IOSChromeIOThread::ChangedToOnTheRecord() { net::URLRequestContextGetter* IOSChromeIOThread::system_url_request_context_getter() { - DCHECK_CURRENTLY_ON_WEB_THREAD(web::WebThread::UI); + DCHECK_CURRENTLY_ON(web::WebThread::UI); if (!system_url_request_context_getter_.get()) { InitSystemRequestContext(); } @@ -376,7 +376,7 @@ IOSChromeIOThread::system_url_request_context_getter() { void IOSChromeIOThread::Init() { TRACE_EVENT0("startup", "IOSChromeIOThread::Init"); - DCHECK_CURRENTLY_ON_WEB_THREAD(web::WebThread::IO); + DCHECK_CURRENTLY_ON(web::WebThread::IO); net::SetMessageLoopForNSSHttpIO(); @@ -604,7 +604,7 @@ void IOSChromeIOThread::CreateDefaultAuthHandlerFactory() { } void IOSChromeIOThread::ClearHostCache() { - DCHECK_CURRENTLY_ON_WEB_THREAD(web::WebThread::IO); + DCHECK_CURRENTLY_ON(web::WebThread::IO); net::HostCache* host_cache = globals_->host_resolver->GetHostCache(); if (host_cache) @@ -681,7 +681,7 @@ net::SSLConfigService* IOSChromeIOThread::GetSSLConfigService() { } void IOSChromeIOThread::ChangedToOnTheRecordOnIOThread() { - DCHECK_CURRENTLY_ON_WEB_THREAD(web::WebThread::IO); + DCHECK_CURRENTLY_ON(web::WebThread::IO); // Clear the host cache to avoid showing entries from the OTR session // in about:net-internals. @@ -708,7 +708,7 @@ void IOSChromeIOThread::InitSystemRequestContext() { } void IOSChromeIOThread::InitSystemRequestContextOnIOThread() { - DCHECK_CURRENTLY_ON_WEB_THREAD(web::WebThread::IO); + DCHECK_CURRENTLY_ON(web::WebThread::IO); DCHECK(!globals_->system_proxy_service.get()); DCHECK(system_proxy_config_service_.get()); |