Only update block_devmode when the device is owned.
The previous code would reset the block_devmode even when no owner is
present, which is incorrect and leads to the flag incorrectly getting
cleared prematurely during OOBE.
BUG=chromium:375772
TEST=Manual: Set block_devmode=1, go through recovery, boot into OOBE, switch to dev. Dev-mode should be blocked.
Change-Id: Id2a39187c32e07039becffc881754570fd0f867f
Reviewed-on: https://chromium-review.googlesource.com/201630
Tested-by: Mattias Nissler <mnissler@chromium.org>
Reviewed-by: Julian Pastarmov <pastarmovj@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Mattias Nissler <mnissler@chromium.org>
2 files changed