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

Unified Diff: chrome/browser/extensions/api/system_info/system_info_provider.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
Index: chrome/browser/extensions/api/system_info/system_info_provider.cc
diff --git a/chrome/browser/extensions/api/system_info/system_info_provider.cc b/chrome/browser/extensions/api/system_info/system_info_provider.cc
index dae986ddf172b208fc8bcd4de537dd4789a6ab64..3ecccb4a60b3e958a419c67a0783493462bd1ed5 100644
--- a/chrome/browser/extensions/api/system_info/system_info_provider.cc
+++ b/chrome/browser/extensions/api/system_info/system_info_provider.cc
@@ -28,7 +28,7 @@ void SystemInfoProvider::InitializeProvider(const base::Closure&
void SystemInfoProvider::StartQueryInfo(
const QueryInfoCompletionCallback& callback) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
DCHECK(!callback.is_null());
callbacks_.push(callback);
@@ -43,7 +43,7 @@ void SystemInfoProvider::StartQueryInfo(
}
void SystemInfoProvider::OnQueryCompleted(bool success) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
while (!callbacks_.empty()) {
QueryInfoCompletionCallback callback = callbacks_.front();

Powered by Google App Engine
This is Rietveld 408576698