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

Issue 2828843002: Fix unsafe destruction order of InputDeviceFactoryEvdev (Closed)

Created:
3 years, 8 months ago by spang
Modified:
3 years, 8 months ago
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix unsafe destruction order of InputDeviceFactoryEvdev This was never destroyed prior to 60a7c584a9be ("mash: Don't synthesize extra key press events in the window server"). Now it's destroyed in a couple places, so try to make this safe. Particularly, destroy devices prior to shared state such as the gestures properties object, and make devices stop DCHECKing that they are destroyed gently (i.e., by getting disabled and stopped from the hotplug handler). Shutdown destruction is abrupt. This should fix a couple issues people are seeing since we started calling the destructor (at least the input related ones). BUG=711431, 713624, 713968 TEST=just compile Review-Url: https://codereview.chromium.org/2828843002 Cr-Commit-Position: refs/heads/master@{#466336} Committed: https://chromium.googlesource.com/chromium/src/+/419dd2a3447f1d39c092f4259d87906c192ed0da

Patch Set 1 #

Patch Set 2 : fix some more dchecks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -7 lines) Patch
M ui/events/ozone/evdev/event_converter_evdev.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/event_converter_evdev_impl.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/input_device_factory_evdev.h View 2 chunks +4 lines, -3 lines 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (24 generated)
spang
3 years, 8 months ago (2017-04-19 18:19:45 UTC) #2
rjkroege
lgtm
3 years, 8 months ago (2017-04-21 14:16:45 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2828843002/20001
3 years, 8 months ago (2017-04-21 14:36:57 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2828843002/20001
3 years, 8 months ago (2017-04-21 14:41:49 UTC) #26
commit-bot: I haz the power
3 years, 8 months ago (2017-04-21 15:01:11 UTC) #29
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/419dd2a3447f1d39c092f4259d87...

Powered by Google App Engine
This is Rietveld 408576698