summaryrefslogtreecommitdiffstats
path: root/media/midi/midi_result.h
diff options
context:
space:
mode:
authortoyoshim <toyoshim@chromium.org>2015-07-09 14:14:51 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-09 21:15:39 +0000
commiteb09fc13169f631cfd610af9fabc3a9e3311ec1a (patch)
treec83d489fe0f67f73fca4243b045f5ad976927481 /media/midi/midi_result.h
parent0e9e860d8eb0fa12450f4d6c9ed7efd29e0c15c2 (diff)
downloadchromium_src-eb09fc13169f631cfd610af9fabc3a9e3311ec1a.zip
chromium_src-eb09fc13169f631cfd610af9fabc3a9e3311ec1a.tar.gz
chromium_src-eb09fc13169f631cfd610af9fabc3a9e3311ec1a.tar.bz2
Web MIDI: add a new UMA entry for the final result code
This change adds a new UMA entry for the final MidiManager result code on browser shutdown. To report the result correctly, I assigned new numbers for the result code. As a side effect, this patch can fix an existing problem that the result code for NOT_INITIALIZED was not propagated to renderer side correctly. BUG=465661 Review URL: https://codereview.chromium.org/1217853007 Cr-Commit-Position: refs/heads/master@{#338148}
Diffstat (limited to 'media/midi/midi_result.h')
-rw-r--r--media/midi/midi_result.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/media/midi/midi_result.h b/media/midi/midi_result.h
deleted file mode 100644
index 5432dca..0000000
--- a/media/midi/midi_result.h
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MEDIA_MIDI_MIDI_RESULT_H_
-#define MEDIA_MIDI_MIDI_RESULT_H_
-
-namespace media {
-namespace midi {
-
-// Result codes for MIDI.
-enum MidiResult {
- MIDI_NOT_INITIALIZED = -1,
- MIDI_OK = 0,
- MIDI_NOT_SUPPORTED,
- MIDI_INITIALIZATION_ERROR,
-
- // |MIDI_RESULT_LAST| is used in content/common/media/midi_messages.h with
- // IPC_ENUM_TRAITS_MAX_VALUE macro. Keep the value up to date. Otherwise
- // a new value can not be passed to the renderer.
- MIDI_RESULT_LAST = MIDI_INITIALIZATION_ERROR,
-};
-
-} // namespace midi
-} // namespace media
-
-#endif // MEDIA_MIDI_MIDI_RESULT_H_