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

Issue 2060623002: Implementation of Device End of Life Notification (Closed)

Created:
4 years, 6 months ago by xiaoyinh(OOO Sep 11-29)
Modified:
4 years, 6 months ago
CC:
chromium-reviews, hashimoto+watch_chromium.org, dzhioev+watch_chromium.org, achuith+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implementation of Device End of Life Notification When device is in EndOfLife status 1. In "About chrome OS" page, grey out update button and show EndofLife Strings 2. When User logs in, show EndofLife Notifications until dismissed. BUG=611816 TEST=Manual and browsertest CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/f39e3ddb63d7de2bfad1c9a2dda8a14653ee6bec Cr-Commit-Position: refs/heads/master@{#400578}

Patch Set 1 #

Patch Set 2 : Add browsertest and flag #

Patch Set 3 : Modify browsertest #

Total comments: 61

Patch Set 4 : Incorporate comments from xiyuan@ #

Patch Set 5 : hook EolNotification in UserSessionManager::FinalizePrepareProfile #

Total comments: 18

Patch Set 6 : incorporate comments from xiyuan@ #

Total comments: 2

Patch Set 7 : Remove CancelById in EolNotificationDelegate #

Patch Set 8 : rebase the branch #

Total comments: 24

Patch Set 9 : Incorporate comments from oshima@ #

Patch Set 10 : incorporate comments from stevenjb@ and oshima@ #

Patch Set 11 : fix the browser test and rebase branch #

Patch Set 12 : followup CL for EOL notification #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -26 lines) Patch
M ash/resources/ash_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A ash/resources/default_100_percent/cros/notification/eol_notification_icon.png View 1 2 3 4 5 6 7 8 9 10 11 Binary file 0 comments Download
A ash/resources/default_200_percent/cros/notification/eol_notification_icon.png View 1 2 3 4 5 6 7 8 9 10 11 Binary file 0 comments Download
M chrome/browser/chromeos/eol_notification.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/eol_notification.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/help/help_handler.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/help/help_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/help/version_updater.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/help/version_updater_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M chromeos/dbus/fake_update_engine_client.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_update_engine_client.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -3 lines 0 comments Download
M chromeos/dbus/update_engine_client.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -3 lines 0 comments Download
M chromeos/dbus/update_engine_client.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 37 (12 generated)
xiaoyinh(OOO Sep 11-29)
4 years, 6 months ago (2016-06-16 20:54:28 UTC) #3
xiyuan
https://codereview.chromium.org/2060623002/diff/40001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/2060623002/diff/40001/chrome/app/chromeos_strings.grdp#newcode5776 chrome/app/chromeos_strings.grdp:5776: <message name="IDS_ABOUT_PAGE_EOL_SECURITY_ONLY" desc="The message for eol security only"> nit: ...
4 years, 6 months ago (2016-06-16 22:41:29 UTC) #4
Ilya Sherman
histograms.xml lgtm
4 years, 6 months ago (2016-06-16 23:14:10 UTC) #5
xiaoyinh(OOO Sep 11-29)
Thank you for your review comment! https://codereview.chromium.org/2060623002/diff/40001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/2060623002/diff/40001/chrome/app/chromeos_strings.grdp#newcode5776 chrome/app/chromeos_strings.grdp:5776: <message name="IDS_ABOUT_PAGE_EOL_SECURITY_ONLY" desc="The ...
4 years, 6 months ago (2016-06-17 04:07:35 UTC) #6
xiaoyinh(OOO Sep 11-29)
stevenjb@, could you help take a look? Thanks!
4 years, 6 months ago (2016-06-17 04:08:56 UTC) #7
xiyuan
https://codereview.chromium.org/2060623002/diff/40001/chrome/browser/chromeos/login/existing_user_controller.h File chrome/browser/chromeos/login/existing_user_controller.h (right): https://codereview.chromium.org/2060623002/diff/40001/chrome/browser/chromeos/login/existing_user_controller.h#newcode259 chrome/browser/chromeos/login/existing_user_controller.h:259: std::unique_ptr<EolNotification> eol_notification_; On 2016/06/17 04:07:35, xiaoyinh wrote: > On ...
4 years, 6 months ago (2016-06-17 15:21:27 UTC) #8
xiaoyinh(OOO Sep 11-29)
On 2016/06/17 15:21:27, xiyuan wrote: > https://codereview.chromium.org/2060623002/diff/40001/chrome/browser/chromeos/login/existing_user_controller.h > File chrome/browser/chromeos/login/existing_user_controller.h (right): > > https://codereview.chromium.org/2060623002/diff/40001/chrome/browser/chromeos/login/existing_user_controller.h#newcode259 > ...
4 years, 6 months ago (2016-06-17 18:50:49 UTC) #9
xiyuan
https://codereview.chromium.org/2060623002/diff/80001/chrome/browser/chromeos/eol_notification.cc File chrome/browser/chromeos/eol_notification.cc (right): https://codereview.chromium.org/2060623002/diff/80001/chrome/browser/chromeos/eol_notification.cc#newcode22 chrome/browser/chromeos/eol_notification.cc:22: #include "ui/gfx/image/image.h" nit: not used. Only need to include ...
4 years, 6 months ago (2016-06-17 20:02:10 UTC) #10
xiaoyinh(OOO Sep 11-29)
https://codereview.chromium.org/2060623002/diff/80001/chrome/browser/chromeos/eol_notification.cc File chrome/browser/chromeos/eol_notification.cc (right): https://codereview.chromium.org/2060623002/diff/80001/chrome/browser/chromeos/eol_notification.cc#newcode22 chrome/browser/chromeos/eol_notification.cc:22: #include "ui/gfx/image/image.h" On 2016/06/17 20:02:09, xiyuan wrote: > nit: ...
4 years, 6 months ago (2016-06-17 22:36:53 UTC) #11
xiyuan
LGTM with CancelById comment fixed. https://codereview.chromium.org/2060623002/diff/100001/chrome/browser/chromeos/eol_notification.cc File chrome/browser/chromeos/eol_notification.cc (right): https://codereview.chromium.org/2060623002/diff/100001/chrome/browser/chromeos/eol_notification.cc#newcode56 chrome/browser/chromeos/eol_notification.cc:56: id(), NotificationUIManager::GetProfileID(profile_)); Don't do ...
4 years, 6 months ago (2016-06-17 22:43:11 UTC) #12
xiaoyinh(OOO Sep 11-29)
https://codereview.chromium.org/2060623002/diff/100001/chrome/browser/chromeos/eol_notification.cc File chrome/browser/chromeos/eol_notification.cc (right): https://codereview.chromium.org/2060623002/diff/100001/chrome/browser/chromeos/eol_notification.cc#newcode56 chrome/browser/chromeos/eol_notification.cc:56: id(), NotificationUIManager::GetProfileID(profile_)); On 2016/06/17 22:43:11, xiyuan wrote: > Don't ...
4 years, 6 months ago (2016-06-17 23:00:00 UTC) #13
xiaoyinh(OOO Sep 11-29)
stevenjb@, hashimoto@, Could you help take a look Dbus code? Need owner approval.
4 years, 6 months ago (2016-06-17 23:20:42 UTC) #17
xiaoyinh(OOO Sep 11-29)
4 years, 6 months ago (2016-06-17 23:26:38 UTC) #19
oshima
https://codereview.chromium.org/2060623002/diff/140001/chrome/browser/chromeos/eol_notification.cc File chrome/browser/chromeos/eol_notification.cc (right): https://codereview.chromium.org/2060623002/diff/140001/chrome/browser/chromeos/eol_notification.cc#newcode98 chrome/browser/chromeos/eol_notification.cc:98: status_ = status; does it makes sense to check ...
4 years, 6 months ago (2016-06-17 23:54:58 UTC) #20
stevenjb
I reviewed chromeos/ only. For future reference, making just the model change (dbus + user_session_manager ...
4 years, 6 months ago (2016-06-18 00:52:58 UTC) #21
xiaoyinh(OOO Sep 11-29)
https://codereview.chromium.org/2060623002/diff/140001/chrome/browser/chromeos/eol_notification.cc File chrome/browser/chromeos/eol_notification.cc (right): https://codereview.chromium.org/2060623002/diff/140001/chrome/browser/chromeos/eol_notification.cc#newcode98 chrome/browser/chromeos/eol_notification.cc:98: status_ = status; On 2016/06/17 23:54:58, oshima wrote: > ...
4 years, 6 months ago (2016-06-18 01:08:12 UTC) #22
oshima
https://codereview.chromium.org/2060623002/diff/140001/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (right): https://codereview.chromium.org/2060623002/diff/140001/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode1684 chrome/browser/chromeos/login/session/user_session_manager.cc:1684: .insert(std::make_pair(profile, std::unique_ptr<EolNotification>( On 2016/06/18 01:08:12, xiaoyinh wrote: > On ...
4 years, 6 months ago (2016-06-18 01:23:25 UTC) #23
xiaoyinh(OOO Sep 11-29)
https://codereview.chromium.org/2060623002/diff/140001/chromeos/dbus/fake_update_engine_client.cc File chromeos/dbus/fake_update_engine_client.cc (right): https://codereview.chromium.org/2060623002/diff/140001/chromeos/dbus/fake_update_engine_client.cc#newcode79 chromeos/dbus/fake_update_engine_client.cc:79: const GetEolStatusCallback& callback) {} On 2016/06/18 00:52:58, stevenjb wrote: ...
4 years, 6 months ago (2016-06-18 02:09:39 UTC) #24
xiaoyinh(OOO Sep 11-29)
On 2016/06/18 01:23:25, oshima wrote: > https://codereview.chromium.org/2060623002/diff/140001/chrome/browser/chromeos/login/session/user_session_manager.cc > File chrome/browser/chromeos/login/session/user_session_manager.cc (right): > > https://codereview.chromium.org/2060623002/diff/140001/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode1684 > ...
4 years, 6 months ago (2016-06-18 02:10:15 UTC) #25
oshima
lgtm
4 years, 6 months ago (2016-06-18 03:31:51 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060623002/200001
4 years, 6 months ago (2016-06-18 03:45:05 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-18 04:09:28 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060623002/200001
4 years, 6 months ago (2016-06-18 04:46:17 UTC) #33
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 6 months ago (2016-06-18 04:50:38 UTC) #35
commit-bot: I haz the power
4 years, 6 months ago (2016-06-18 04:52:26 UTC) #37
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/f39e3ddb63d7de2bfad1c9a2dda8a14653ee6bec
Cr-Commit-Position: refs/heads/master@{#400578}

Powered by Google App Engine
This is Rietveld 408576698