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

Unified Diff: ui/events/mojo/event_struct_traits.cc

Issue 2719223004: Adding NOTREACHED in Read() in Event StructTraits to add clarity to the code.
Patch Set: Fix upstream. Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698