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

Issue 9466005: Make sure the device recovers from policy loss in the consumer case. (Closed)

Created:
8 years, 10 months ago by pastarmovj
Modified:
8 years, 9 months ago
Reviewers:
Chris Masone, satorux1
CC:
chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Make sure the device recovers from policy loss in the consumer case. Lock down login to the owner only and restore policy on successful owner login. The machine is forced to restart if the owner didn't login because we have no better way to clear the key store loaded for another user. BUG=chromium-os:26793 TEST=TBA. Manually: Delete the policy blob and verify that policy is recovered correctly. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=128877

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebased, addressed comments and extended a bit. #

Patch Set 3 : Now with proper testing. #

Total comments: 19

Patch Set 4 : Rebased on ToT and cleaned up comments and unrelated changes. #

Total comments: 4

Patch Set 5 : s/Reboot/RestartUi/g #

Patch Set 6 : Rebased to ToT and cleaned up the unit tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -48 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros_settings_names.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros_settings_names.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/dbus/cryptohome_client.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/dbus/cryptohome_client.cc View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/dbus/mock_cryptohome_client.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/device_settings_provider.cc View 1 2 3 4 5 4 chunks +34 lines, -35 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 5 2 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_status_consumer.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/mock_user_manager.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/parallel_authenticator.h View 1 2 3 4 chunks +27 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/parallel_authenticator.cc View 1 2 3 9 chunks +77 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/parallel_authenticator_unittest.cc View 1 2 3 4 5 7 chunks +95 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/user_manager.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 4 5 3 chunks +15 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/stub_cros_settings_provider.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
pastarmovj
Hey Chris, This is the first draft of my proposed solution to the policy file ...
8 years, 10 months ago (2012-02-24 16:39:56 UTC) #1
Chris Masone
This approach certainly looks fine to me. http://codereview.chromium.org/9466005/diff/1/chrome/browser/chromeos/device_settings_provider.cc File chrome/browser/chromeos/device_settings_provider.cc (right): http://codereview.chromium.org/9466005/diff/1/chrome/browser/chromeos/device_settings_provider.cc#newcode541 chrome/browser/chromeos/device_settings_provider.cc:541: // we ...
8 years, 10 months ago (2012-02-24 18:49:45 UTC) #2
pastarmovj
Hey Chris, Please review this CL now with proper testing included. I have one more ...
8 years, 9 months ago (2012-03-13 15:21:55 UTC) #3
Chris Masone
It seems like you broke the OnLoginSuccess unit test, per your trybot runs http://chromiumcodereview.appspot.com/9466005/diff/12001/chrome/browser/chromeos/device_settings_provider_unittest.cc File ...
8 years, 9 months ago (2012-03-13 16:45:52 UTC) #4
pastarmovj
Fixed the issues and split this CL which was starting to drag too much stuff ...
8 years, 9 months ago (2012-03-22 11:47:59 UTC) #5
Chris Masone
Mostly good! Just one question in a unittest file http://chromiumcodereview.appspot.com/9466005/diff/28001/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): http://chromiumcodereview.appspot.com/9466005/diff/28001/chrome/browser/chromeos/login/existing_user_controller.cc#newcode95 chrome/browser/chromeos/login/existing_user_controller.cc:95: ...
8 years, 9 months ago (2012-03-22 16:18:25 UTC) #6
pastarmovj
Only responded to the question for mocking UserManager. http://chromiumcodereview.appspot.com/9466005/diff/28001/chrome/browser/chromeos/login/parallel_authenticator_unittest.cc File chrome/browser/chromeos/login/parallel_authenticator_unittest.cc (right): http://chromiumcodereview.appspot.com/9466005/diff/28001/chrome/browser/chromeos/login/parallel_authenticator_unittest.cc#newcode101 chrome/browser/chromeos/login/parallel_authenticator_unittest.cc:101: old_user_manager_ ...
8 years, 9 months ago (2012-03-22 16:25:46 UTC) #7
Chris Masone
Ah. LGTM, once trybots pass, then. ANd with that comment nit :-)
8 years, 9 months ago (2012-03-22 16:31:44 UTC) #8
pastarmovj
Adding satorux for owner approval for chrome/browser/chromeos/dbus/. http://codereview.chromium.org/9466005/diff/28001/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): http://codereview.chromium.org/9466005/diff/28001/chrome/browser/chromeos/login/existing_user_controller.cc#newcode95 chrome/browser/chromeos/login/existing_user_controller.cc:95: // Delay ...
8 years, 9 months ago (2012-03-23 13:00:25 UTC) #9
satorux1
8 years, 9 months ago (2012-03-23 16:05:24 UTC) #10
chromeos/dbus lgtm

Powered by Google App Engine
This is Rietveld 408576698