summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraedla@chromium.org <aedla@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-24 14:39:00 +0000
committeraedla@chromium.org <aedla@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-24 14:39:00 +0000
commit52b9ce4ce3a90f935249bb3caf12e1dc410289cd (patch)
tree6f6197040ca3cd12d65d3890e2ae7bc1ce03d491
parent4ce0fe7f14b848394d7116f215294c8d905ac89c (diff)
downloadchromium_src-52b9ce4ce3a90f935249bb3caf12e1dc410289cd.zip
chromium_src-52b9ce4ce3a90f935249bb3caf12e1dc410289cd.tar.gz
chromium_src-52b9ce4ce3a90f935249bb3caf12e1dc410289cd.tar.bz2
Merge 208055 "Use validating param traits for MediaStreamType enum"
> Use validating param traits for MediaStreamType enum > > BUG=249854 > > Review URL: https://chromiumcodereview.appspot.com/17253003 TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/17578005 git-svn-id: svn://svn.chromium.org/chrome/branches/1500/src@208211 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--content/common/media/media_stream_messages.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/common/media/media_stream_messages.h b/content/common/media/media_stream_messages.h
index eeaf9c9..bb7a529 100644
--- a/content/common/media/media_stream_messages.h
+++ b/content/common/media/media_stream_messages.h
@@ -16,7 +16,8 @@
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
#define IPC_MESSAGE_START MediaStreamMsgStart
-IPC_ENUM_TRAITS(content::MediaStreamType)
+IPC_ENUM_TRAITS_MAX_VALUE(content::MediaStreamType,
+ content::NUM_MEDIA_TYPES - 1)
IPC_STRUCT_TRAITS_BEGIN(content::StreamOptions)
IPC_STRUCT_TRAITS_MEMBER(audio_type)