Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Issue 18023007: chromeos: PowerManagerHandler -> PowerStatus; move to ash. (Closed)

Created:
7 years, 5 months ago by Daniel Erat
Modified:
7 years, 5 months ago
Reviewers:
stevenjb, sky, jennyz
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, derat+watch_chromium.org, ben+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

chromeos: PowerManagerHandler -> PowerStatus; move to ash. With this change, ash::internal::PowerStatus is mostly the same as the old chromeos::PowerManagerHandler: it's a singleton that asks chromeos::PowerManagerClient to request the power status at startup and then provides PowerSupplyStatus structs to various classes in ash/system. Going forward, I plan to remove the PowerSupplyStatus struct (so that the PowerStatus class hangs on to the original PowerSupplyProperties protocol buffers sent by the power manager) and add methods to PowerStatus for accessing the interesting parts of the protobufs (instead of having multiple copies of the status sanitized and stored across the different classes in ash/system). BUG=254173 [email protected] Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209103

Patch Set 1 #

Patch Set 2 : minor cleanup and pass --similarity=30 to git-cl #

Total comments: 6

Patch Set 3 : apply review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -382 lines) Patch
M ash/ash.gyp View 2 chunks +4 lines, -1 line 0 comments Download
M ash/shell.cc View 4 chunks +12 lines, -1 line 0 comments Download
M ash/shell/content_client/shell_browser_main_parts.cc View 3 chunks +0 lines, -3 lines 0 comments Download
A + ash/system/chromeos/power/power_status.h View 1 2 3 chunks +20 lines, -26 lines 0 comments Download
A ash/system/chromeos/power/power_status.cc View 1 chunk +85 lines, -0 lines 0 comments Download
A + ash/system/chromeos/power/power_status_unittest.cc View 1 2 4 chunks +31 lines, -27 lines 0 comments Download
M ash/system/chromeos/power/tray_power.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M ash/system/chromeos/power/tray_power.cc View 5 chunks +5 lines, -11 lines 0 comments Download
M ash/system/chromeos/power/tray_power_unittest.cc View 3 chunks +10 lines, -3 lines 0 comments Download
M ash/system/chromeos/settings/tray_settings.h View 3 chunks +3 lines, -4 lines 0 comments Download
M ash/system/chromeos/settings/tray_settings.cc View 5 chunks +5 lines, -8 lines 0 comments Download
M ash/test/ash_test_helper.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 4 chunks +0 lines, -6 lines 0 comments Download
M chrome/test/base/view_event_test_base.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M chromeos/chromeos.gyp View 2 chunks +0 lines, -3 lines 0 comments Download
D chromeos/power/power_manager_handler.h View 1 chunk +0 lines, -80 lines 0 comments Download
D chromeos/power/power_manager_handler.cc View 1 chunk +0 lines, -98 lines 0 comments Download
D chromeos/power/power_manager_handler_unittest.cc View 1 chunk +0 lines, -102 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Daniel Erat
This replaces my previous https://codereview.chromium.org/17766002/ change -- I figured that there isn't much point to ...
7 years, 5 months ago (2013-06-27 19:40:47 UTC) #1
stevenjb
https://codereview.chromium.org/18023007/diff/2001/ash/system/chromeos/power/power_status.h File ash/system/chromeos/power/power_status.h (right): https://codereview.chromium.org/18023007/diff/2001/ash/system/chromeos/power/power_status.h#newcode23 ash/system/chromeos/power/power_status.h:23: const chromeos::PowerSupplyStatus& power_status) = 0; This should declare a ...
7 years, 5 months ago (2013-06-27 21:36:30 UTC) #2
Daniel Erat
PTAL https://codereview.chromium.org/18023007/diff/2001/ash/system/chromeos/power/power_status.h File ash/system/chromeos/power/power_status.h (right): https://codereview.chromium.org/18023007/diff/2001/ash/system/chromeos/power/power_status.h#newcode23 ash/system/chromeos/power/power_status.h:23: const chromeos::PowerSupplyStatus& power_status) = 0; On 2013/06/27 21:36:30, ...
7 years, 5 months ago (2013-06-27 21:45:23 UTC) #3
stevenjb
lgtm
7 years, 5 months ago (2013-06-27 21:54:34 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/18023007/8001
7 years, 5 months ago (2013-06-27 22:04:20 UTC) #5
jennyz
lgtm
7 years, 5 months ago (2013-06-27 22:07:54 UTC) #6
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-06-27 22:40:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/18023007/8001
7 years, 5 months ago (2013-06-27 22:59:46 UTC) #8
commit-bot: I haz the power
7 years, 5 months ago (2013-06-28 05:28:47 UTC) #9
Message was sent while issue was closed.
Change committed as 209103

Powered by Google App Engine
This is Rietveld 408576698