Commit 5eacb505 authored by Daniel Erat's avatar Daniel Erat Committed by Commit Bot

chromeos: Simplify D-Bus signals in PowerManagerClient.

Make PowerManagerClient iterate over a map of (signal name,
function pointer) tuples instead of repeating a bunch of
difficult-to-read ConnectToSignal calls.

Also switch to in-class initialization of data members.

Bug: none
Change-Id: Ifff2a30481556c5ff86f83f4ca721b00504d7856
Reviewed-on: https://chromium-review.googlesource.com/981525Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: Dan Erat <derat@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546201}
parent da8665a4
This diff is collapsed.
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