Chromium Code Reviews| Index: ui/events/mojo/event_struct_traits.cc |
| diff --git a/ui/events/mojo/event_struct_traits.cc b/ui/events/mojo/event_struct_traits.cc |
| index 21ae98f1201a0488c4c0b4fd7379e4eaef77198c..7b4c537bd6fd2d2920bd4f104d5e57417a1933d2 100644 |
| --- a/ui/events/mojo/event_struct_traits.cc |
| +++ b/ui/events/mojo/event_struct_traits.cc |
| @@ -308,6 +308,7 @@ bool StructTraits<ui::mojom::EventDataView, EventUniquePtr>::Read( |
| return false; |
| } |
| + NOTREACHED(); |
|
sadrul
2017/03/02 00:00:38
I am not sure if NOTREACHED() is good here. Becaus
mfomitchev
2017/03/02 00:03:41
If the event is invalid, it's type will be UNKNOWN
sadrul
2017/03/02 02:22:31
I think it's possible for the sender to send an ev
mfomitchev
2017/03/02 03:05:45
Hmm.. at this point we have EventDataView object,
Tom Sepez
2017/03/02 18:54:37
Doesn't NOTREACHED() only fire in the debug code?
|
| return false; |
| } |