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

Unified Diff: content/browser/media/midi_host.cc

Issue 2404443002: Web MIDI: use midi_service.mojom for media::midi::Result (Closed)
Patch Set: yhirano@ review Created 4 years, 2 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/media/midi_host.cc
diff --git a/content/browser/media/midi_host.cc b/content/browser/media/midi_host.cc
index 1f02d203ea1624e4a744aeea7193cb543f1c60c3..73d131c31a655b142b217640a75f846c42adfcf4 100644
--- a/content/browser/media/midi_host.cc
+++ b/content/browser/media/midi_host.cc
@@ -44,6 +44,7 @@ bool IsSystemRealTimeMessage(uint8_t data) {
using midi::kSysExByte;
using midi::kEndOfSysExByte;
+using midi::mojom::Result;
MidiHost::MidiHost(int renderer_process_id,
midi::MidiManager* midi_manager)
@@ -141,9 +142,9 @@ void MidiHost::OnEndSession() {
midi_manager_->EndSession(this);
}
-void MidiHost::CompleteStartSession(midi::Result result) {
+void MidiHost::CompleteStartSession(Result result) {
DCHECK(is_session_requested_);
- if (result == midi::Result::OK) {
+ if (result == Result::OK) {
// ChildSecurityPolicy is set just before OnStartSession by
// MidiDispatcherHost. So we can safely cache the policy.
has_sys_ex_permission_ = ChildProcessSecurityPolicyImpl::GetInstance()->

Powered by Google App Engine
This is Rietveld 408576698