Commit 00dc0d43 authored by chirantan's avatar chirantan Committed by Commit bot

Add accessor for can_wake_from_suspend_ in AlarmTimer

Consumers of this class (powerd) might want to know if it actually can
wake the system from suspend so that they can try alternatives if it
doesn't have this ability.

BUG=chrome-os-partner:31970
TBR=derat

Review URL: https://codereview.chromium.org/685503006

Cr-Commit-Position: refs/heads/master@{#302158}
parent e8258781
...@@ -61,6 +61,8 @@ class AlarmTimer : public base::Timer, ...@@ -61,6 +61,8 @@ class AlarmTimer : public base::Timer,
~AlarmTimer() override; ~AlarmTimer() override;
bool can_wake_from_suspend() { return can_wake_from_suspend_; }
// Timer overrides. // Timer overrides.
void Stop() override; void Stop() override;
void Reset() override; void Reset() override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment