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

Issue 811033002: Add device policy to disallow shutdown - ash UI modifications (Closed)

Created:
6 years ago by cschuet (SLOW)
Modified:
5 years, 11 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, dzhioev+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+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

Add device policy to disallow shutdown - ash UI modifications This CL is a follow-up to 776093004 which wires up the UI (ash only!) to the disallow shutdown policy. CL 811283003: Clean-up of the system shutdown code paths should land first as it cleans up the existing shutdown code paths as suggested by stevenjb. BUG=312541 Committed: https://crrev.com/7f630ba4f4c3f4075ba718fa18ee0a2eeb36cbb7 Cr-Commit-Position: refs/heads/master@{#312603}

Patch Set 1 #

Patch Set 2 : shutdown_allowed => reboot_on_shutdown #

Total comments: 32

Patch Set 3 : reduced scope of CL (ash only now, removed webui changes) #

Total comments: 23

Patch Set 4 : rebase + stvenjb's and derat's proposed changes #

Patch Set 5 : Added ASH_EXPORT to ash::ShutdownPolicyObserver #

Total comments: 2

Patch Set 6 : nit in signin_screen_handler.cc #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -93 lines) Patch
M ash/ash_strings.grd View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A ash/system/chromeos/shutdown_policy_observer.h View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M ash/system/date/date_default_view.h View 1 2 3 3 chunks +12 lines, -4 lines 0 comments Download
M ash/system/date/date_default_view.cc View 1 2 3 4 5 6 4 chunks +49 lines, -34 lines 0 comments Download
M ash/system/tray/default_system_tray_delegate.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ash/system/tray/default_system_tray_delegate.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray_delegate.h View 1 2 3 5 chunks +20 lines, -3 lines 0 comments Download
M ash/test/test_lock_state_controller_delegate.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M ash/test/test_lock_state_controller_delegate.cc View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download
M ash/wm/lock_state_controller.h View 1 2 3 5 chunks +7 lines, -14 lines 0 comments Download
M ash/wm/lock_state_controller.cc View 1 2 3 5 chunks +8 lines, -15 lines 0 comments Download
M ash/wm/lock_state_controller_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/power_button_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/power/session_state_controller_delegate_chromeos.h View 1 2 3 4 5 6 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/power/session_state_controller_delegate_chromeos.cc View 1 2 3 1 chunk +27 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 2 3 5 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 4 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_common.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_common.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (11 generated)
cschuet (SLOW)
derat@chromium.org: Please review changes in chrome/browser/ui/ash/* ash/ash_strings.grd ash/test/* antrim@chromium.org: Please review changes in chrome/browser/resources/chromeos/login/* chrome/browser/ui/webui/chromeos/login/* ...
6 years ago (2014-12-17 12:45:17 UTC) #2
cschuet (SLOW)
zelidrag@chromium.org: Please review changes in chrome/browser/resources/chromeos/login/* chrome/browser/ui/webui/chromeos/login/*
6 years ago (2014-12-17 13:12:55 UTC) #5
Daniel Erat
https://codereview.chromium.org/811033002/diff/20001/ash/system/date/date_default_view.cc File ash/system/date/date_default_view.cc (right): https://codereview.chromium.org/811033002/diff/20001/ash/system/date/date_default_view.cc#newcode143 ash/system/date/date_default_view.cc:143: } else if (sender == reboot_) { you should ...
6 years ago (2014-12-17 16:21:04 UTC) #6
stevenjb
https://codereview.chromium.org/811033002/diff/20001/ash/system/date/date_default_view.cc File ash/system/date/date_default_view.cc (right): https://codereview.chromium.org/811033002/diff/20001/ash/system/date/date_default_view.cc#newcode87 ash/system/date/date_default_view.cc:87: view->AddButton(reboot_); Rather than having two separate buttons and the ...
6 years ago (2014-12-17 19:09:03 UTC) #7
cschuet (SLOW)
https://codereview.chromium.org/811033002/diff/20001/ash/system/date/date_default_view.cc File ash/system/date/date_default_view.cc (right): https://codereview.chromium.org/811033002/diff/20001/ash/system/date/date_default_view.cc#newcode87 ash/system/date/date_default_view.cc:87: view->AddButton(reboot_); On 2014/12/17 19:09:02, stevenjb wrote: > Rather than ...
5 years, 11 months ago (2015-01-07 14:37:08 UTC) #8
Daniel Erat
you might want to hold off for a bit on any changes to make sure ...
5 years, 11 months ago (2015-01-07 16:18:40 UTC) #9
stevenjb
https://codereview.chromium.org/811033002/diff/40001/ash/wm/lock_state_controller.h File ash/wm/lock_state_controller.h (right): https://codereview.chromium.org/811033002/diff/40001/ash/wm/lock_state_controller.h#newcode43 ash/wm/lock_state_controller.h:43: virtual void RequestShutdownOrRestart() = 0; On 2015/01/07 16:18:40, Daniel ...
5 years, 11 months ago (2015-01-07 19:03:37 UTC) #10
stevenjb
https://codereview.chromium.org/811033002/diff/40001/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc File chrome/browser/ui/ash/system_tray_delegate_chromeos.cc (right): https://codereview.chromium.org/811033002/diff/40001/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc#newcode236 chrome/browser/ui/ash/system_tray_delegate_chromeos.cc:236: new ShutdownPolicyHandler(CrosSettings::Get(), this)); It's a shame that we have ...
5 years, 11 months ago (2015-01-07 19:24:20 UTC) #11
cschuet (SLOW)
ptal https://codereview.chromium.org/811033002/diff/40001/ash/ash_strings.grd File ash/ash_strings.grd (right): https://codereview.chromium.org/811033002/diff/40001/ash/ash_strings.grd#newcode355 ash/ash_strings.grd:355: <message name="IDS_ASH_STATUS_TRAY_REBOOT" desc="The accessible text for the reboot ...
5 years, 11 months ago (2015-01-13 10:38:28 UTC) #12
stevenjb
lgtm
5 years, 11 months ago (2015-01-13 16:59:13 UTC) #13
cschuet (SLOW)
On 2015/01/13 16:59:13, stevenjb wrote: > lgtm @derat: friendly review ping :)
5 years, 11 months ago (2015-01-21 10:05:58 UTC) #14
Daniel Erat
lgtm with a nit. thanks! https://codereview.chromium.org/811033002/diff/80001/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc (right): https://codereview.chromium.org/811033002/diff/80001/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc#newcode1042 chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc:1042: ->RequestShutdown(); nit: this can ...
5 years, 11 months ago (2015-01-21 15:25:40 UTC) #15
cschuet (SLOW)
@nkostylev: ptal @ chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc https://codereview.chromium.org/811033002/diff/80001/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc (right): https://codereview.chromium.org/811033002/diff/80001/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc#newcode1042 chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc:1042: ->RequestShutdown(); On 2015/01/21 15:25:40, Daniel ...
5 years, 11 months ago (2015-01-21 15:34:41 UTC) #17
cschuet (SLOW)
On 2015/01/21 15:34:41, cschuet wrote: > @nkostylev: ptal @ > chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc > > https://codereview.chromium.org/811033002/diff/80001/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc > ...
5 years, 11 months ago (2015-01-22 09:43:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/811033002/100001
5 years, 11 months ago (2015-01-22 09:43:44 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ng/builds/3161) ios_rel_device_ninja_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja_ng/builds/3158) mac_chromium_compile_dbg_ng ...
5 years, 11 months ago (2015-01-22 09:47:11 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/811033002/120001
5 years, 11 months ago (2015-01-22 12:22:30 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/811033002/120001
5 years, 11 months ago (2015-01-22 12:29:30 UTC) #27
Nikita (slow)
lgtm
5 years, 11 months ago (2015-01-22 12:37:24 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/811033002/120001
5 years, 11 months ago (2015-01-22 12:41:26 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 11 months ago (2015-01-22 13:17:35 UTC) #32
commit-bot: I haz the power
5 years, 11 months ago (2015-01-22 13:18:37 UTC) #33
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/7f630ba4f4c3f4075ba718fa18ee0a2eeb36cbb7
Cr-Commit-Position: refs/heads/master@{#312603}

Powered by Google App Engine
This is Rietveld 408576698