Index: chrome/browser/media/desktop_streams_registry.cc |
diff --git a/chrome/browser/media/desktop_streams_registry.cc b/chrome/browser/media/desktop_streams_registry.cc |
index 9f6a0ebec9c193fa49d1ff80a5b76cf542ee4c21..bd21240cdc56f3117fc2fe2f0a1e2052ef5cd7cd 100644 |
--- a/chrome/browser/media/desktop_streams_registry.cc |
+++ b/chrome/browser/media/desktop_streams_registry.cc |
@@ -36,7 +36,7 @@ std::string DesktopStreamsRegistry::RegisterStream( |
const GURL& origin, |
const content::DesktopMediaID& source, |
const std::string& extension_name) { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
std::string id = GenerateRandomStreamId(); |
DCHECK(approved_streams_.find(id) == approved_streams_.end()); |
@@ -62,7 +62,7 @@ content::DesktopMediaID DesktopStreamsRegistry::RequestMediaForStreamId( |
int render_frame_id, |
const GURL& origin, |
std::string* extension_name) { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
StreamsMap::iterator it = approved_streams_.find(id); |
@@ -82,7 +82,7 @@ content::DesktopMediaID DesktopStreamsRegistry::RequestMediaForStreamId( |
} |
void DesktopStreamsRegistry::CleanupStream(const std::string& id) { |
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
approved_streams_.erase(id); |
} |