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

Unified Diff: content/shell/browser/layout_test/layout_test_message_filter.cc

Issue 1602703005: Web MIDI: Ask permissions of the content layer always (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review #10 and #11, rebase PS will follow 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/shell/browser/layout_test/layout_test_message_filter.cc
diff --git a/content/shell/browser/layout_test/layout_test_message_filter.cc b/content/shell/browser/layout_test/layout_test_message_filter.cc
index 567bd346cf6653f4f8cde17e0a9e893c139221be..97c64e5b00924b378a52ab68d777c757094d8f5f 100644
--- a/content/shell/browser/layout_test/layout_test_message_filter.cc
+++ b/content/shell/browser/layout_test/layout_test_message_filter.cc
@@ -138,7 +138,9 @@ void LayoutTestMessageFilter::OnSetPermission(const std::string& name,
DCHECK_CURRENTLY_ON(BrowserThread::UI);
content::PermissionType type;
- if (name == "midi-sysex") {
+ if (name == "midi") {
+ type = PermissionType::MIDI;
+ } else if (name == "midi-sysex") {
type = PermissionType::MIDI_SYSEX;
} else if (name == "push-messaging") {
type = PermissionType::PUSH_MESSAGING;

Powered by Google App Engine
This is Rietveld 408576698