midi: Add flag to disable the browser process components

This change implements a quick-and-dirty flag to disable the browser
process components of the WebMIDI API in order to investigate an issue.

When the flag is disabled the API is still exposed by Blink but the
browser process will always respond with a "not supported" message.

Bug: 1251044
Change-Id: Ib763d1c3c4f81b4b8690a8e5334bf80da0680857
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3183370
Commit-Queue: Reilly Grant <[email protected]>
Auto-Submit: Reilly Grant <[email protected]>
Reviewed-by: Takashi Toyoshima <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Cr-Commit-Position: refs/heads/main@{#926390}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index f526995e..681a920 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -2729,6 +2729,11 @@
     "Enables WebID HTTP filtering and JavaScript "
     "API to intermediate federated identity requests.";
 
+const char kWebMidiName[] = "Web MIDI";
+const char kWebMidiDescription[] =
+    "Enables the implementation of the Web MIDI API. When disabled the "
+    "interface will still be exposed by Blink.";
+
 const char kWebOtpBackendName[] = "Web OTP";
 const char kWebOtpBackendDescription[] =
     "Enables Web OTP API that uses the specified backend.";