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

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

Created:
4 years, 1 month ago by Daniel Erat
Modified:
4 years, 1 month ago
Reviewers:
Chirantan Ekbote
CC:
chromium-reviews, oshima+watch_chromium.org, derat+watch_chromium.org, hashimoto+watch_chromium.org
Target Ref:
refs/pending/branch-heads/2840
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. (Unit tests omitted for merge to M54 since they depend on additional changes.) BUG=chrome-os-partner:58295, 648580 NOTRY=true NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2403733003 Cr-Commit-Position: refs/heads/master@{#424214} (cherry picked from commit 2e1f06081912f24add12275fc184f1995011faed)

Patch Set 1 #

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

Messages

Total messages: 8 (4 generated)
Daniel Erat
4 years, 1 month ago (2016-10-25 23:24:17 UTC) #2
Chirantan Ekbote
lgtm
4 years, 1 month ago (2016-10-25 23:27:25 UTC) #3
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/2451013002/1
4 years, 1 month ago (2016-10-25 23:38:01 UTC) #6
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 23:41:11 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1)

Powered by Google App Engine
This is Rietveld 408576698