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

Unified Diff: extensions/browser/api/async_api_function.cc

Issue 216513002: Replace DCHECK(BrowserThread::CurrentlyOn) with DCHECK_CURRENTLY_ON in extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « extensions/browser/api/api_resource_manager.h ('k') | extensions/browser/api/dns/dns_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/async_api_function.cc
diff --git a/extensions/browser/api/async_api_function.cc b/extensions/browser/api/async_api_function.cc
index 2ed484dc2fc0bfe5af69dc81e53e75d71132a7e9..1152f208f0bf90c554bfffc8c560e96797fc8da9 100644
--- a/extensions/browser/api/async_api_function.cc
+++ b/extensions/browser/api/async_api_function.cc
@@ -17,7 +17,7 @@ AsyncApiFunction::AsyncApiFunction() : work_thread_id_(BrowserThread::IO) {}
AsyncApiFunction::~AsyncApiFunction() {}
bool AsyncApiFunction::RunImpl() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (!PrePrepare() || !Prepare()) {
return false;
@@ -52,7 +52,7 @@ void AsyncApiFunction::AsyncWorkCompleted() {
}
void AsyncApiFunction::WorkOnWorkThread() {
- DCHECK(BrowserThread::CurrentlyOn(work_thread_id_));
+ DCHECK_CURRENTLY_ON(work_thread_id_);
DLOG_IF(ERROR, (work_thread_id_ == BrowserThread::UI))
<< "You have specified that AsyncApiFunction::Work() should happen on "
"the UI thread. This nullifies the point of this class. Either "
@@ -61,7 +61,7 @@ void AsyncApiFunction::WorkOnWorkThread() {
}
void AsyncApiFunction::RespondOnUIThread() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
SendResponse(Respond());
}
« no previous file with comments | « extensions/browser/api/api_resource_manager.h ('k') | extensions/browser/api/dns/dns_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698