|
|
Chromium Code Reviews|
Created:
6 years, 7 months ago by flackr Modified:
6 years, 7 months ago Reviewers:
sadrul CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
DescriptionFix crash on key events in touchview.
BUG=362881
TEST=Key events no longer crash in touchview.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272778
Patch Set 1 #
Total comments: 3
Patch Set 2 : Check for non GenericEvent event type. #Messages
Total messages: 14 (0 generated)
Hey, there's a crash because key events are not XI2 events. Is just checking IsKeyEvent the right thing to do here? PTAL, thanks.
https://codereview.chromium.org/294033016/diff/1/ash/wm/maximize_mode/interna... File ash/wm/maximize_mode/internal_input_device_list_x11.cc (right): https://codereview.chromium.org/294033016/diff/1/ash/wm/maximize_mode/interna... ash/wm/maximize_mode/internal_input_device_list_x11.cc:51: XIDeviceEvent* xiev = static_cast<XIDeviceEvent*>( CHECK that event->native_event()->type == GenericEvent instead before this.
https://codereview.chromium.org/294033016/diff/1/ash/wm/maximize_mode/interna... File ash/wm/maximize_mode/internal_input_device_list_x11.cc (right): https://codereview.chromium.org/294033016/diff/1/ash/wm/maximize_mode/interna... ash/wm/maximize_mode/internal_input_device_list_x11.cc:51: XIDeviceEvent* xiev = static_cast<XIDeviceEvent*>( On 2014/05/23 17:21:57, sadrul wrote: > CHECK that event->native_event()->type == GenericEvent instead before this. s/CHECK/Check/, as in, early return if not GenericEvent.
https://codereview.chromium.org/294033016/diff/1/ash/wm/maximize_mode/interna... File ash/wm/maximize_mode/internal_input_device_list_x11.cc (right): https://codereview.chromium.org/294033016/diff/1/ash/wm/maximize_mode/interna... ash/wm/maximize_mode/internal_input_device_list_x11.cc:51: XIDeviceEvent* xiev = static_cast<XIDeviceEvent*>( On 2014/05/23 17:22:34, sadrul wrote: > On 2014/05/23 17:21:57, sadrul wrote: > > CHECK that event->native_event()->type == GenericEvent instead before this. > > s/CHECK/Check/, as in, early return if not GenericEvent. Done.
Updated issue title to be more specific.
lgtm
The CQ bit was checked by flackr@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/294033016/20001
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are real, and report flakes to chrome-troopers@google.com. The failing builders are: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/buil...)
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/buil...)
The CQ bit was checked by flackr@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/294033016/20001
Message was sent while issue was closed.
Change committed as 272778 |
