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

Issue 107103004: Implement the spring charger replacement UI. (Closed)

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

Description

Implement the spring charger replacement UI and add related UMA stats. This cl depends on https://codereview.chromium.org/105923003/ to be land before it. BUG=320708, 321419 R=derat@chromium.org, xiyuan@chromium.org TBR=isherman, pam, sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240486

Patch Set 1 #

Total comments: 14

Patch Set 2 : Address review comments. #

Total comments: 12

Patch Set 3 : Fix nits. #

Total comments: 2

Patch Set 4 : nit. #

Patch Set 5 : Add UMA stats. #

Total comments: 16

Patch Set 6 : Address code review commnets. #

Total comments: 6

Patch Set 7 : Optimize the line_power_was_connected_ code. #

Total comments: 3

Patch Set 8 : nits. #

Patch Set 9 : Change hex color code to RGB in css. #

Patch Set 10 : Fix the win compiling issue. #

Patch Set 11 : Point iFrame to production site. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1719 lines, -45 lines) Patch
M ash/system/chromeos/power/power_status.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ash/system/chromeos/power/power_status.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M ash/system/chromeos/power/tray_power.h View 1 2 3 4 5 6 7 3 chunks +17 lines, -0 lines 0 comments Download
M ash/system/chromeos/power/tray_power.cc View 1 2 3 4 5 6 5 chunks +37 lines, -1 line 0 comments Download
M ash/system/tray/default_system_tray_delegate.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ash/system/tray/default_system_tray_delegate.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray_delegate.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 8 1 chunk +126 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/browser/chromeos/charger_replace/charger_link_dialog.h View 2 chunks +13 lines, -22 lines 0 comments Download
A chrome/browser/chromeos/charger_replace/charger_link_dialog.cc View 1 chunk +90 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/charger_replace/charger_replacement_dialog.h View 2 chunks +23 lines, -22 lines 0 comments Download
A chrome/browser/chromeos/charger_replace/charger_replacement_dialog.cc View 1 2 3 4 1 chunk +137 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/ash_system_tray_delegate.cc View 1 2 3 4 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/charger_replacement.css View 1 2 3 4 5 6 7 8 1 chunk +153 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/charger_replacement.html View 1 2 1 chunk +221 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/charger_replacement.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +374 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/charger_replacement_handler.h View 1 chunk +67 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/charger_replacement_handler.cc View 1 2 3 4 1 chunk +296 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/charger_replacement_ui.h View 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/charger_replacement_ui.cc View 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M tools/metrics/actions/chromeactions.txt View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
jennyz
7 years ago (2013-12-05 23:36:32 UTC) #1
xiyuan
Mostly nits. https://codereview.chromium.org/107103004/diff/1/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/107103004/diff/1/chrome/app/chromeos_strings.grdp#newcode3963 chrome/app/chromeos_strings.grdp:3963: FAQs This is not the right way ...
7 years ago (2013-12-06 00:24:37 UTC) #2
jennyz
https://codereview.chromium.org/107103004/diff/1/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/107103004/diff/1/chrome/app/chromeos_strings.grdp#newcode3963 chrome/app/chromeos_strings.grdp:3963: FAQs On 2013/12/06 00:24:37, xiyuan wrote: > This is ...
7 years ago (2013-12-06 03:54:24 UTC) #3
jennyz
derat@, please take a look at the change in: ash/system/chromeos/power/. I tested with your powerd ...
7 years ago (2013-12-06 03:55:58 UTC) #4
xiyuan
LGTM with nits https://codereview.chromium.org/107103004/diff/60001/chrome/browser/resources/chromeos/charger_replacement.html File chrome/browser/resources/chromeos/charger_replacement.html (right): https://codereview.chromium.org/107103004/diff/60001/chrome/browser/resources/chromeos/charger_replacement.html#newcode138 chrome/browser/resources/chromeos/charger_replacement.html:138: <a class="link" href="#">http://chromebook.com/hp11charger</a> nit: Define the ...
7 years ago (2013-12-06 05:03:25 UTC) #5
Daniel Erat
just looked at ash/system/chromeos https://codereview.chromium.org/107103004/diff/60001/ash/system/chromeos/power/power_status.cc File ash/system/chromeos/power/power_status.cc (right): https://codereview.chromium.org/107103004/diff/60001/ash/system/chromeos/power/power_status.cc#newcode194 ash/system/chromeos/power/power_status.cc:194: // in purpose of backport ...
7 years ago (2013-12-06 17:43:25 UTC) #6
jennyz
https://codereview.chromium.org/107103004/diff/60001/ash/system/chromeos/power/power_status.cc File ash/system/chromeos/power/power_status.cc (right): https://codereview.chromium.org/107103004/diff/60001/ash/system/chromeos/power/power_status.cc#newcode194 ash/system/chromeos/power/power_status.cc:194: // in purpose of backport compatibility. On 2013/12/06 17:43:26, ...
7 years ago (2013-12-06 18:15:15 UTC) #7
Daniel Erat
LGTM for ash/system/chromeos/power https://codereview.chromium.org/107103004/diff/80001/ash/system/chromeos/power/tray_power.cc File ash/system/chromeos/power/tray_power.cc (right): https://codereview.chromium.org/107103004/diff/80001/ash/system/chromeos/power/tray_power.cc#newcode167 ash/system/chromeos/power/tray_power.cc:167: // Show spring charger replacement dialog ...
7 years ago (2013-12-06 18:45:24 UTC) #8
jennyz
https://codereview.chromium.org/107103004/diff/80001/ash/system/chromeos/power/tray_power.cc File ash/system/chromeos/power/tray_power.cc (right): https://codereview.chromium.org/107103004/diff/80001/ash/system/chromeos/power/tray_power.cc#newcode167 ash/system/chromeos/power/tray_power.cc:167: // Show spring charger replacement dialog if necessary. On ...
7 years ago (2013-12-06 19:11:35 UTC) #9
jennyz
PTAL.
7 years ago (2013-12-09 23:48:42 UTC) #10
Daniel Erat
https://codereview.chromium.org/107103004/diff/120001/ash/system/chromeos/power/tray_power.cc File ash/system/chromeos/power/tray_power.cc (right): https://codereview.chromium.org/107103004/diff/120001/ash/system/chromeos/power/tray_power.cc#newcode171 ash/system/chromeos/power/tray_power.cc:171: if (PowerStatus::Get()->IsOriginalSpringChargerConnected()) { shouldn't this also check !HasUserConfirmedSafeSpringCharger()? https://codereview.chromium.org/107103004/diff/120001/ash/system/chromeos/power/tray_power.cc#newcode173 ...
7 years ago (2013-12-10 00:08:58 UTC) #11
xiyuan
https://codereview.chromium.org/107103004/diff/120001/ash/system/chromeos/power/tray_power.h File ash/system/chromeos/power/tray_power.h (right): https://codereview.chromium.org/107103004/diff/120001/ash/system/chromeos/power/tray_power.h#newcode67 ash/system/chromeos/power/tray_power.h:67: NUM_EXTERNAL_POWER_SUPPLY, From what I learned from isherman@ on another ...
7 years ago (2013-12-10 00:21:19 UTC) #12
jennyz
https://codereview.chromium.org/107103004/diff/120001/ash/system/chromeos/power/tray_power.cc File ash/system/chromeos/power/tray_power.cc (right): https://codereview.chromium.org/107103004/diff/120001/ash/system/chromeos/power/tray_power.cc#newcode171 ash/system/chromeos/power/tray_power.cc:171: if (PowerStatus::Get()->IsOriginalSpringChargerConnected()) { On 2013/12/10 00:08:58, Daniel Erat wrote: ...
7 years ago (2013-12-10 19:14:11 UTC) #13
Daniel Erat
https://codereview.chromium.org/107103004/diff/160001/ash/system/chromeos/power/tray_power.cc File ash/system/chromeos/power/tray_power.cc (right): https://codereview.chromium.org/107103004/diff/160001/ash/system/chromeos/power/tray_power.cc#newcode319 ash/system/chromeos/power/tray_power.cc:319: } you can remove this if you follow the ...
7 years ago (2013-12-10 19:21:54 UTC) #14
jennyz
https://codereview.chromium.org/107103004/diff/160001/ash/system/chromeos/power/tray_power.cc File ash/system/chromeos/power/tray_power.cc (right): https://codereview.chromium.org/107103004/diff/160001/ash/system/chromeos/power/tray_power.cc#newcode319 ash/system/chromeos/power/tray_power.cc:319: } On 2013/12/10 19:21:54, Daniel Erat wrote: > you ...
7 years ago (2013-12-10 19:50:13 UTC) #15
Daniel Erat
LGTM for ash/system/chromeos/power https://codereview.chromium.org/107103004/diff/180001/ash/system/chromeos/power/tray_power.h File ash/system/chromeos/power/tray_power.h (right): https://codereview.chromium.org/107103004/diff/180001/ash/system/chromeos/power/tray_power.h#newcode61 ash/system/chromeos/power/tray_power.h:61: enum ChargerType{ nit: add a comment ...
7 years ago (2013-12-10 21:30:35 UTC) #16
jennyz
https://codereview.chromium.org/107103004/diff/180001/ash/system/chromeos/power/tray_power.h File ash/system/chromeos/power/tray_power.h (right): https://codereview.chromium.org/107103004/diff/180001/ash/system/chromeos/power/tray_power.h#newcode61 ash/system/chromeos/power/tray_power.h:61: enum ChargerType{ On 2013/12/10 21:30:36, Daniel Erat wrote: > ...
7 years ago (2013-12-10 22:05:20 UTC) #17
xiyuan
SLGTM
7 years ago (2013-12-10 22:22:23 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennyz@chromium.org/107103004/200001
7 years ago (2013-12-12 18:38:41 UTC) #19
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/system/ash_system_tray_delegate.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
7 years ago (2013-12-12 18:39:00 UTC) #20
jennyz
7 years ago (2013-12-12 18:41:56 UTC) #21
jennyz
7 years ago (2013-12-12 18:44:03 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennyz@chromium.org/107103004/200001
7 years ago (2013-12-12 18:46:25 UTC) #23
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/system/ash_system_tray_delegate.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
7 years ago (2013-12-12 18:46:50 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennyz@chromium.org/107103004/200001
7 years ago (2013-12-12 19:35:05 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennyz@chromium.org/107103004/210001
7 years ago (2013-12-12 19:54:53 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennyz@chromium.org/107103004/230001
7 years ago (2013-12-12 21:01:58 UTC) #27
commit-bot: I haz the power
Commit queue failed due to new patchset.
7 years ago (2013-12-12 23:41:30 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennyz@chromium.org/107103004/250001
7 years ago (2013-12-12 23:45:36 UTC) #29
jennyz
7 years ago (2013-12-12 23:56:03 UTC) #30
Message was sent while issue was closed.
Committed patchset #11 manually as r240486 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698