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

Unified Diff: content/renderer/media/midi_dispatcher.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 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/renderer/media/midi_dispatcher.cc
diff --git a/content/renderer/media/midi_dispatcher.cc b/content/renderer/media/midi_dispatcher.cc
index 40fca8472bec453b3211554cd592d05736df47d9..dc322ebd208da0c5d4a023504f623d205303de9d 100644
--- a/content/renderer/media/midi_dispatcher.cc
+++ b/content/renderer/media/midi_dispatcher.cc
@@ -34,11 +34,9 @@ void MidiDispatcher::requestSysexPermission(
requests_.Add(new WebMIDIPermissionRequest(request));
permission_service_->RequestPermission(
- PERMISSION_NAME_MIDI_SYSEX,
- request.securityOrigin().toString().utf8(),
+ PermissionName::MIDI_SYSEX, request.securityOrigin().toString().utf8(),
blink::WebUserGestureIndicator::isProcessingUserGesture(),
- base::Bind(&MidiDispatcher::OnSysExPermissionSet,
- base::Unretained(this),
+ base::Bind(&MidiDispatcher::OnSysExPermissionSet, base::Unretained(this),
permission_request_id));
}
@@ -59,7 +57,7 @@ void MidiDispatcher::OnSysExPermissionSet(int request_id,
WebMIDIPermissionRequest* request = requests_.Lookup(request_id);
if (!request)
return;
- request->setIsAllowed(status == PERMISSION_STATUS_GRANTED);
+ request->setIsAllowed(status == PermissionStatus::GRANTED);
requests_.Remove(request_id);
}
« no previous file with comments | « content/renderer/media/media_permission_dispatcher_impl.cc ('k') | content/renderer/mus/compositor_mus_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698