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

Issue 18176013: chromeos: Refactor system tray code into PowerStatus. (Closed)

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

Description

chromeos: Refactor system tray code into PowerStatus. This attempts to clean up shared Ash system tray code related to displaying the battery status by moving it into the PowerStatus class. Other classes no longer use the PowerSupplyStatus struct, and in a following change, I plan to remove that struct entirely. BUG=254173 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209342

Patch Set 1 #

Patch Set 2 : minor updates #

Total comments: 11

Patch Set 3 : update for base/time/time.h #

Patch Set 4 : remove virtual #

Unified diffs Side-by-side diffs Delta from patch set Stats (+385 lines, -560 lines) Patch
M ash/system/chromeos/power/power_status.h View 1 2 3 3 chunks +66 lines, -14 lines 0 comments Download
M ash/system/chromeos/power/power_status.cc View 4 chunks +168 lines, -13 lines 0 comments Download
M ash/system/chromeos/power/power_status_unittest.cc View 3 chunks +5 lines, -24 lines 0 comments Download
M ash/system/chromeos/power/power_status_view.h View 4 chunks +6 lines, -26 lines 0 comments Download
M ash/system/chromeos/power/power_status_view.cc View 8 chunks +43 lines, -119 lines 0 comments Download
M ash/system/chromeos/power/tray_power.h View 1 3 chunks +8 lines, -51 lines 0 comments Download
M ash/system/chromeos/power/tray_power.cc View 1 12 chunks +40 lines, -267 lines 0 comments Download
M ash/system/chromeos/power/tray_power_unittest.cc View 1 4 chunks +20 lines, -11 lines 0 comments Download
M ash/system/chromeos/settings/tray_settings.h View 3 chunks +1 line, -6 lines 0 comments Download
M ash/system/chromeos/settings/tray_settings.cc View 6 chunks +20 lines, -25 lines 0 comments Download
M chromeos/dbus/power_manager_client.cc View 1 chunk +8 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Daniel Erat
https://codereview.chromium.org/18176013/diff/3001/ash/system/chromeos/power/power_status_view.cc File ash/system/chromeos/power/power_status_view.cc (right): https://codereview.chromium.org/18176013/diff/3001/ash/system/chromeos/power/power_status_view.cc#newcode68 ash/system/chromeos/power/power_status_view.cc:68: icon_->SetImage( I don't think there's much value to caching ...
7 years, 5 months ago (2013-06-28 21:43:23 UTC) #1
Daniel Erat
Looks like base/time.h got moved since I uploaded this. New version on the way...
7 years, 5 months ago (2013-06-28 22:15:05 UTC) #2
James Cook
LGTM - nice patch
7 years, 5 months ago (2013-06-28 22:23:51 UTC) #3
Daniel Erat
update for base/time/time.h
7 years, 5 months ago (2013-06-28 22:24:16 UTC) #4
stevenjb
https://codereview.chromium.org/18176013/diff/3001/ash/system/chromeos/power/power_status.h File ash/system/chromeos/power/power_status.h (right): https://codereview.chromium.org/18176013/diff/3001/ash/system/chromeos/power/power_status.h#newcode58 ash/system/chromeos/power/power_status.h:58: } nit: maybe put at the end of the ...
7 years, 5 months ago (2013-06-28 22:50:48 UTC) #5
stevenjb
lgtm btw
7 years, 5 months ago (2013-06-28 22:51:14 UTC) #6
Daniel Erat
https://codereview.chromium.org/18176013/diff/3001/ash/system/chromeos/power/power_status.h File ash/system/chromeos/power/power_status.h (right): https://codereview.chromium.org/18176013/diff/3001/ash/system/chromeos/power/power_status.h#newcode58 ash/system/chromeos/power/power_status.h:58: } On 2013/06/28 22:50:48, stevenjb (chromium) wrote: > nit: ...
7 years, 5 months ago (2013-06-28 23:22:42 UTC) #7
Daniel Erat
remove virtual
7 years, 5 months ago (2013-06-28 23:30:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/18176013/3002
7 years, 5 months ago (2013-06-28 23:32:57 UTC) #9
commit-bot: I haz the power
7 years, 5 months ago (2013-06-29 20:56:53 UTC) #10
Message was sent while issue was closed.
Change committed as 209342

Powered by Google App Engine
This is Rietveld 408576698