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

Unified Diff: content/browser/renderer_host/media/midi_dispatcher_host.cc

Issue 216473002: Replace DCHECK(BrowserThread::CurrentlyOn) with DCHECK_CURRENTLY_ON in content/browser/renderer_hos… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to r260263 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: content/browser/renderer_host/media/midi_dispatcher_host.cc
diff --git a/content/browser/renderer_host/media/midi_dispatcher_host.cc b/content/browser/renderer_host/media/midi_dispatcher_host.cc
index e69a56696bb533995c8fc1a751d032bfd8010631..2863e11ee591126f3551e8224185ad1f69311fae 100644
--- a/content/browser/renderer_host/media/midi_dispatcher_host.cc
+++ b/content/browser/renderer_host/media/midi_dispatcher_host.cc
@@ -47,7 +47,7 @@ void MidiDispatcherHost::OnRequestSysExPermission(int render_view_id,
int bridge_id,
const GURL& origin,
bool user_gesture) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
browser_context_->RequestMidiSysExPermission(
render_process_id_,
@@ -65,7 +65,7 @@ void MidiDispatcherHost::OnCancelSysExPermissionRequest(
int render_view_id,
int bridge_id,
const GURL& requesting_frame) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
DVLOG(1) << __FUNCTION__ << " " << render_process_id_ << ":" << render_view_id
<< ":" << bridge_id;
browser_context_->CancelMidiSysExPermissionRequest(

Powered by Google App Engine
This is Rietveld 408576698