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

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

Created:
3 years, 8 months ago by marcheu1
Modified:
3 years, 8 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/branch-heads/3071
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} (cherry picked from commit 419dd2a3447f1d39c092f4259d87906c192ed0da) Review-Url: https://codereview.chromium.org/2833243002 . Cr-Commit-Position: refs/branch-heads/3071@{#140} Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641} Committed: https://chromium.googlesource.com/chromium/src/+/955a01b06b3cb7fb6ca51acd085313439c0ef5bb

Patch Set 1 #

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 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 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (1 generated)
marcheu1
3 years, 8 months ago (2017-04-22 01:36:28 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
955a01b06b3cb7fb6ca51acd085313439c0ef5bb.

Powered by Google App Engine
This is Rietveld 408576698