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

Issue 17157007: cros: Show notification when low-power charger connected (Closed)

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

Description

cros: Show notification when low-power charger connected Encourage the user to plug in the official charger. Also extract FakeMessageCenter into a message_center_test_support target so I can use it for a unit test. BUG=249852 TEST=ash_unittests TrayPowerTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207374

Patch Set 1 #

Total comments: 9

Patch Set 2 : review comments 1 #

Patch Set 3 : review comments #

Patch Set 4 : reupload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -18 lines) Patch
M ash/ash.gyp View 2 chunks +2 lines, -0 lines 0 comments Download
M ash/ash_chromeos_strings.grdp View 1 1 chunk +8 lines, -0 lines 0 comments Download
M ash/ash_switches.h View 2 chunks +7 lines, -0 lines 0 comments Download
M ash/ash_switches.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M ash/system/chromeos/power/tray_power.h View 5 chunks +34 lines, -8 lines 0 comments Download
M ash/system/chromeos/power/tray_power.cc View 1 2 6 chunks +56 lines, -3 lines 0 comments Download
A ash/system/chromeos/power/tray_power_unittest.cc View 1 chunk +152 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M ui/message_center/fake_message_center.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/message_center/message_center.gyp View 3 chunks +18 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
James Cook
derat, PTAL at ash/* mukai, PTAL at ui/message_center/*
7 years, 6 months ago (2013-06-19 17:28:39 UTC) #1
Jun Mukai
a few nitpicks https://codereview.chromium.org/17157007/diff/1/ash/system/chromeos/power/tray_power.cc File ash/system/chromeos/power/tray_power.cc (right): https://codereview.chromium.org/17157007/diff/1/ash/system/chromeos/power/tray_power.cc#newcode209 ash/system/chromeos/power/tray_power.cc:209: message_center::MessageCenter* message_center) you don't need "meesage_center::" ...
7 years, 6 months ago (2013-06-19 17:43:31 UTC) #2
James Cook
Updated - please take another look. https://codereview.chromium.org/17157007/diff/1/ash/system/chromeos/power/tray_power.cc File ash/system/chromeos/power/tray_power.cc (right): https://codereview.chromium.org/17157007/diff/1/ash/system/chromeos/power/tray_power.cc#newcode209 ash/system/chromeos/power/tray_power.cc:209: message_center::MessageCenter* message_center) On ...
7 years, 6 months ago (2013-06-19 18:00:08 UTC) #3
Daniel Erat
LGTM I have a slight preference for this being turned off until http://crosbug.com/20320 is tracked ...
7 years, 6 months ago (2013-06-19 19:48:37 UTC) #4
Jun Mukai
lgtm https://codereview.chromium.org/17157007/diff/1/ash/system/chromeos/power/tray_power.cc File ash/system/chromeos/power/tray_power.cc (right): https://codereview.chromium.org/17157007/diff/1/ash/system/chromeos/power/tray_power.cc#newcode452 ash/system/chromeos/power/tray_power.cc:452: NULL)); On 2013/06/19 18:00:08, James Cook (Chromium) wrote: ...
7 years, 6 months ago (2013-06-19 21:01:56 UTC) #5
James Cook
> Then, that's fine. system priority was added to notify special important things > and ...
7 years, 6 months ago (2013-06-19 22:30:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/17157007/7001
7 years, 6 months ago (2013-06-20 01:51:05 UTC) #7
commit-bot: I haz the power
Change committed as 207374
7 years, 6 months ago (2013-06-20 09:19:13 UTC) #8
James Cook
7 years, 6 months ago (2013-06-20 15:54:08 UTC) #9
Message was sent while issue was closed.
On 2013/06/20 09:19:13, I haz the power (commit-bot) wrote:
> Change committed as 207374

Broke Win Aura compile:
http://build.chromium.org/p/chromium.win/builders/Win%20Aura%20Builder/builds...

Powered by Google App Engine
This is Rietveld 408576698