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

Unified Diff: media/midi/midi_switches.cc

Issue 1276233005: [WebMIDI] Add "use-android-midi-api" flag for Android M+ devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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
« no previous file with comments | « media/midi/midi_switches.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/midi_switches.cc
diff --git a/components/web_resource/web_resource_switches.cc b/media/midi/midi_switches.cc
similarity index 56%
copy from components/web_resource/web_resource_switches.cc
copy to media/midi/midi_switches.cc
index 8a1f9a772c0997b747f3dadfd6ffdcac8bbc2cff..1fee12ce92da3472add97d91cb672f5627e2de11 100644
--- a/components/web_resource/web_resource_switches.cc
+++ b/media/midi/midi_switches.cc
@@ -2,11 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/web_resource/web_resource_switches.h"
+#include "media/midi/midi_switches.h"
namespace switches {
-// Specifies a custom URL for fetching NTP promo data.
-const char kPromoServerURL[] = "promo-server-url";
+#if defined(OS_ANDROID)
+// Use Android Midi API for WebMIDI
+const char kUseAndroidMidiApi[] = "use-android-midi-api";
+#endif
} // namespace switches
« no previous file with comments | « media/midi/midi_switches.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698