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

Issue 2719223004: Adding NOTREACHED in Read() in Event StructTraits to add clarity to the code.

Created:
3 years, 9 months ago by mfomitchev
Modified:
3 years, 9 months ago
Reviewers:
Tom Sepez, sadrul
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tdresser+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding NOTREACHED in Read() in Event StructTraits to add clarity to the code. BUG=NONE

Patch Set 1 #

Patch Set 2 : Adding return. #

Patch Set 3 : Fix upstream. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M ui/events/mojo/event_struct_traits.cc View 1 2 1 chunk +1 line, -0 lines 5 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (19 generated)
mfomitchev
3 years, 9 months ago (2017-03-01 22:09:28 UTC) #19
sadrul
https://codereview.chromium.org/2719223004/diff/40001/ui/events/mojo/event_struct_traits.cc File ui/events/mojo/event_struct_traits.cc (right): https://codereview.chromium.org/2719223004/diff/40001/ui/events/mojo/event_struct_traits.cc#newcode311 ui/events/mojo/event_struct_traits.cc:311: NOTREACHED(); I am not sure if NOTREACHED() is good ...
3 years, 9 months ago (2017-03-02 00:00:39 UTC) #20
mfomitchev
https://codereview.chromium.org/2719223004/diff/40001/ui/events/mojo/event_struct_traits.cc File ui/events/mojo/event_struct_traits.cc (right): https://codereview.chromium.org/2719223004/diff/40001/ui/events/mojo/event_struct_traits.cc#newcode311 ui/events/mojo/event_struct_traits.cc:311: NOTREACHED(); On 2017/03/02 00:00:38, sadrul wrote: > I am ...
3 years, 9 months ago (2017-03-02 00:03:41 UTC) #21
sadrul
https://codereview.chromium.org/2719223004/diff/40001/ui/events/mojo/event_struct_traits.cc File ui/events/mojo/event_struct_traits.cc (right): https://codereview.chromium.org/2719223004/diff/40001/ui/events/mojo/event_struct_traits.cc#newcode311 ui/events/mojo/event_struct_traits.cc:311: NOTREACHED(); On 2017/03/02 00:03:41, mfomitchev wrote: > On 2017/03/02 ...
3 years, 9 months ago (2017-03-02 02:22:32 UTC) #22
mfomitchev
https://codereview.chromium.org/2719223004/diff/40001/ui/events/mojo/event_struct_traits.cc File ui/events/mojo/event_struct_traits.cc (right): https://codereview.chromium.org/2719223004/diff/40001/ui/events/mojo/event_struct_traits.cc#newcode311 ui/events/mojo/event_struct_traits.cc:311: NOTREACHED(); On 2017/03/02 02:22:31, sadrul wrote: > On 2017/03/02 ...
3 years, 9 months ago (2017-03-02 03:05:45 UTC) #23
sadrul
On 2017/03/02 03:05:45, mfomitchev wrote: > https://codereview.chromium.org/2719223004/diff/40001/ui/events/mojo/event_struct_traits.cc > File ui/events/mojo/event_struct_traits.cc (right): > > https://codereview.chromium.org/2719223004/diff/40001/ui/events/mojo/event_struct_traits.cc#newcode311 > ...
3 years, 9 months ago (2017-03-02 17:57:44 UTC) #24
mfomitchev
+tsepez - can you please advise on the discussion we are having in the comments?
3 years, 9 months ago (2017-03-02 18:50:21 UTC) #26
Tom Sepez
https://codereview.chromium.org/2719223004/diff/40001/ui/events/mojo/event_struct_traits.cc File ui/events/mojo/event_struct_traits.cc (right): https://codereview.chromium.org/2719223004/diff/40001/ui/events/mojo/event_struct_traits.cc#newcode311 ui/events/mojo/event_struct_traits.cc:311: NOTREACHED(); Doesn't NOTREACHED() only fire in the debug code? ...
3 years, 9 months ago (2017-03-02 18:54:37 UTC) #27
mfomitchev
3 years, 9 months ago (2017-03-02 20:29:06 UTC) #28
Ok, it sounds like we can get to the end of the method when there is invalid
input, so I have adjusted CL https://codereview.chromium.org/2728883002/ to take
care of that. Can you please take another look at it? I will just get rid of
this CL.

Powered by Google App Engine
This is Rietveld 408576698