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

Issue 692383005: Add DeviceDisablingManager to manage device disabling (Closed)

Created:
6 years, 1 month ago by bartfab (slow)
Modified:
6 years, 1 month ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@f_3_425574_disable_header_bar
Project:
chromium
Visibility:
Public.

Description

Add DeviceDisablingManager to manage device disabling This CL moves the logic that determines whether the device is disabled from the DeviceDisabledScreen into a new DeviceDisablingManager. For now, this is a no-op refactoring. In a follow-up CL, the new manager will also become responsible for disabling the device on the fly when the appropriate signal is received during a device policy fetch. BUG=425574 TEST=New unit tests; updated unit and browser tests Committed: https://crrev.com/4fd3a33e7c382fbf84757ef8bd56a2fd6fc5e7db Cr-Commit-Position: refs/heads/master@{#303105}

Patch Set 1 #

Patch Set 2 : Move the parsing of the disabled message to DeviceDisablingManager as well. #

Total comments: 10

Patch Set 3 : Fix overzealous gypi clean-up. #

Total comments: 2

Patch Set 4 : Addressed comments. #

Patch Set 5 : As suggested by Denis, ignore accelerators on the disabled screen. #

Patch Set 6 : Added comment summarizing when the device is considered disabled during OOBE. #

Patch Set 7 : Explain how we protect against JS/HTML injection via the disabled message. #

Patch Set 8 : Add destructor required by clang. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -259 lines) Patch
M chrome/browser/browser_process_platform_part_chromeos.h View 4 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_platform_part_chromeos.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/screens/base_screen_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/screens/device_disabled_screen.h View 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/screens/device_disabled_screen.cc View 1 2 3 4 chunks +4 lines, -50 lines 0 comments Download
M chrome/browser/chromeos/login/screens/device_disabled_screen_unittest.cc View 1 1 chunk +0 lines, -186 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.h View 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 3 6 chunks +20 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller_browsertest.cc View 1 2 3 4 5 6 7 4 chunks +3 lines, -4 lines 0 comments Download
A chrome/browser/chromeos/system/device_disabling_manager.h View 1 2 3 4 5 6 7 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/system/device_disabling_manager.cc View 1 2 3 4 5 6 7 1 chunk +83 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/system/device_disabling_manager_unittest.cc View 1 2 3 1 chunk +171 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_device_disabled.js View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M ui/login/display_manager.js View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
bartfab (slow)
Hi Lei, Could you please take a look at: chrome/browser/browser_process_platform_part_chromeos.* Hi Achuith, Could you please ...
6 years, 1 month ago (2014-11-05 13:16:57 UTC) #2
achuithb
owner lgtm. Btw, would this feature benefit from an integration test? If so, let's file ...
6 years, 1 month ago (2014-11-05 19:59:55 UTC) #3
Lei Zhang
lgtm
6 years, 1 month ago (2014-11-05 22:28:54 UTC) #4
bartfab (slow)
https://codereview.chromium.org/692383005/diff/20001/chrome/browser/chromeos/system/device_disabling_manager.cc File chrome/browser/chromeos/system/device_disabling_manager.cc (right): https://codereview.chromium.org/692383005/diff/20001/chrome/browser/chromeos/system/device_disabling_manager.cc#newcode61 chrome/browser/chromeos/system/device_disabling_manager.cc:61: callback.Run(false); On 2014/11/05 19:59:54, achuithb wrote: > Should there ...
6 years, 1 month ago (2014-11-06 16:14:38 UTC) #5
bartfab (slow)
> Btw, would this feature benefit from an integration test? If so, let's file a ...
6 years, 1 month ago (2014-11-06 16:15:22 UTC) #6
Denis Kuznetsov (DE-MUC)
https://chromiumcodereview.appspot.com/692383005/diff/40001/chrome/browser/chromeos/system/device_disabling_manager.cc File chrome/browser/chromeos/system/device_disabling_manager.cc (right): https://chromiumcodereview.appspot.com/692383005/diff/40001/chrome/browser/chromeos/system/device_disabling_manager.cc#newcode64 chrome/browser/chromeos/system/device_disabling_manager.cc:64: Add a comment/DCHECK explicitly stating condition (e.g. policy is ...
6 years, 1 month ago (2014-11-06 16:34:29 UTC) #7
Denis Kuznetsov (DE-MUC)
lgtm
6 years, 1 month ago (2014-11-06 17:07:35 UTC) #8
bartfab (slow)
https://chromiumcodereview.appspot.com/692383005/diff/40001/chrome/browser/chromeos/system/device_disabling_manager.cc File chrome/browser/chromeos/system/device_disabling_manager.cc (right): https://chromiumcodereview.appspot.com/692383005/diff/40001/chrome/browser/chromeos/system/device_disabling_manager.cc#newcode64 chrome/browser/chromeos/system/device_disabling_manager.cc:64: On 2014/11/06 16:34:29, Denis Kuznetsov wrote: > Add a ...
6 years, 1 month ago (2014-11-06 17:08:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/692383005/120001
6 years, 1 month ago (2014-11-06 20:41:33 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel/builds/9541)
6 years, 1 month ago (2014-11-06 21:08:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/692383005/140001
6 years, 1 month ago (2014-11-06 21:49:27 UTC) #15
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years, 1 month ago (2014-11-06 22:43:22 UTC) #16
commit-bot: I haz the power
6 years, 1 month ago (2014-11-06 22:44:01 UTC) #17
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4fd3a33e7c382fbf84757ef8bd56a2fd6fc5e7db
Cr-Commit-Position: refs/heads/master@{#303105}

Powered by Google App Engine
This is Rietveld 408576698