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

Unified Diff: chrome/browser/extensions/api/system_info/system_info_api.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_api.cc
diff --git a/chrome/browser/extensions/api/system_info/system_info_api.cc b/chrome/browser/extensions/api/system_info/system_info_api.cc
index 099cfd5228b416264fa770b8dec204b7f3e2227e..a73a368eb56e64e53edaf15b95907695de94fab2 100644
--- a/chrome/browser/extensions/api/system_info/system_info_api.cc
+++ b/chrome/browser/extensions/api/system_info/system_info_api.cc
@@ -114,7 +114,7 @@ SystemInfoEventRouter::~SystemInfoEventRouter() {
}
void SystemInfoEventRouter::AddEventListener(const std::string& event_name) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
watching_event_set_.insert(event_name);
if (watching_event_set_.count(event_name) > 1)
@@ -136,7 +136,7 @@ void SystemInfoEventRouter::AddEventListener(const std::string& event_name) {
}
void SystemInfoEventRouter::RemoveEventListener(const std::string& event_name) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
std::multiset<std::string>::iterator it =
watching_event_set_.find(event_name);

Powered by Google App Engine
This is Rietveld 408576698