fix: power observer dbus crash (#15030)
* fix: check dbus response for nullptr before using * chore: use BindOnce for ProxyObject::CallMethod cb * chore: comment out name of unused argument * fix: re-enable and fix linux power monitor tests * fix: change tyop from code comments * refactor: don't keep unnecessary dbus pointer * chore: remove the 'TODO: fix this' spec comment
This commit is contained in:
parent
7df51eef3c
commit
05f4860889
3 changed files with 41 additions and 39 deletions
|
@ -40,7 +40,6 @@ class PowerObserverLinux : public base::PowerObserver {
|
|||
|
||||
base::Callback<bool()> should_shutdown_;
|
||||
|
||||
scoped_refptr<dbus::Bus> bus_;
|
||||
scoped_refptr<dbus::ObjectProxy> logind_;
|
||||
std::string lock_owner_name_;
|
||||
base::ScopedFD sleep_lock_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue