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

Issue 2504523002: [Reland-fixing asan failure] Tablet-like power button behavior on Convertible/Tablet ChromeOS devic… (Closed)

Created:
4 years, 1 month ago by Qiang(Joe) Xu
Modified:
4 years, 1 month ago
Reviewers:
Daniel Erat
CC:
chromium-reviews, hashimoto+watch_chromium.org, kalyank, sadrul, oshima+watch_chromium.org, derat+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Reland-fixing asan failure] Tablet-like power button behavior on Convertible/Tablet ChromeOS devices description from 2474913004: Changes: device consistency: convertible/tablet chromeos devices follow the behavior described in go/touchview-power convertible behavior; other devices follow clamshell behavior. description for this review: The CL in 2474913004 using raw pointer for callback. However, there are two threads, UI thread and DBusThread. Thus raw pointer may cause "use after free address error". BUG=633304 TEST=manually test; add unitttest; manually asan test. Committed: https://crrev.com/168ffcf4f0f154cc52d7428f18e90b7d2c5ffb73 Cr-Commit-Position: refs/heads/master@{#432196}

Patch Set 1 : base from 2474913004 #

Patch Set 2 : fix asan test failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+706 lines, -87 lines) Patch
M ash/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
A ash/system/chromeos/power/tablet_power_button_controller.h View 1 1 chunk +125 lines, -0 lines 0 comments Download
A ash/system/chromeos/power/tablet_power_button_controller.cc View 1 1 chunk +213 lines, -0 lines 0 comments Download
A ash/system/chromeos/power/tablet_power_button_controller_unittest.cc View 1 chunk +306 lines, -0 lines 0 comments Download
M ash/wm/lock_state_controller.h View 2 chunks +0 lines, -2 lines 0 comments Download
M ash/wm/lock_state_controller_unittest.cc View 1 chunk +0 lines, -39 lines 0 comments Download
M ash/wm/power_button_controller.h View 5 chunks +14 lines, -13 lines 0 comments Download
M ash/wm/power_button_controller.cc View 8 chunks +34 lines, -32 lines 0 comments Download
M chromeos/dbus/fake_power_manager_client.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_power_manager_client.cc View 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 15 (10 generated)
Qiang(Joe) Xu
Hi Daniel, please review this first and then https://codereview.chromium.org/2506493002/, thanks!
4 years, 1 month ago (2016-11-15 05:31:45 UTC) #6
Daniel Erat
lgtm
4 years, 1 month ago (2016-11-15 15:08:20 UTC) #9
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/2504523002/20001
4 years, 1 month ago (2016-11-15 16:24:37 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-15 16:46:04 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 16:50:41 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/168ffcf4f0f154cc52d7428f18e90b7d2c5ffb73
Cr-Commit-Position: refs/heads/master@{#432196}

Powered by Google App Engine
This is Rietveld 408576698