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

Issue 2403733003: chromeos: Avoid crash on synchronous suspend readiness call. (Closed)

Created:
4 years, 2 months ago by Daniel Erat
Modified:
4 years, 2 months ago
Reviewers:
Chirantan Ekbote
CC:
chromium-reviews, oshima+watch_chromium.org, derat+watch_chromium.org, hashimoto+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Avoid crash on synchronous suspend readiness call. Avoid a CHECK() (and premature HandleSuspendReadiness D-Bus call to powerd) in PowerManagerClient::MaybeReportSuspendReadiness that could happen when a PowerManagerClient::Observer called GetSuspendReadinessCallback() and then invoked the callback synchronously from its SuspendImminent() method instead of running it asynchronously. It appears that DisplayConfigurator does this in some no-op cases. BUG=chrome-os-partner:58295, 648580 Committed: https://crrev.com/2e1f06081912f24add12275fc184f1995011faed Cr-Commit-Position: refs/heads/master@{#424214}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -0 lines) Patch
M chromeos/dbus/power_manager_client.cc View 4 chunks +18 lines, -0 lines 0 comments Download
M chromeos/dbus/power_manager_client_unittest.cc View 5 chunks +46 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
Daniel Erat
this feels lower-risk to me than fixing DisplayConfigurator, so i'd prefer to check it in ...
4 years, 2 months ago (2016-10-10 18:49:20 UTC) #4
Chirantan Ekbote
lgtm
4 years, 2 months ago (2016-10-10 19:23:08 UTC) #5
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/2403733003/1
4 years, 2 months ago (2016-10-10 20:00:51 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-10 20:06:42 UTC) #10
commit-bot: I haz the power
4 years, 2 months ago (2016-10-10 20:09:23 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/2e1f06081912f24add12275fc184f1995011faed
Cr-Commit-Position: refs/heads/master@{#424214}

Powered by Google App Engine
This is Rietveld 408576698