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

Issue 2798023005: Force encryption migration if the device supports ARC. (Closed)

Created:
3 years, 8 months ago by fukino
Modified:
3 years, 8 months ago
Reviewers:
xiyuan, Ilya Sherman
CC:
chromium-reviews, alemate+watch_chromium.org, oshima+watch_chromium.org, achuith+watch_chromium.org, arv+watch_chromium.org, asvitkine+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Force encryption migration if the device supports ARC. This CL includes following changes: * Add |is_forcing_dircrypto| to UserContext to pass the configuration from ExistingUserController to CryptohomeAuthenticator. The flag affects MountParameter for MountEx API. * If a regular user signs in and ARC is available, ExistingUserController flips the flag to ensure that the cryptohome is encrypted in dircrypto. * Add a user-facing flag to enable the migration, since the backend of the migration procedure is not completely ready yet. * If a user choose "SKIP" in the migration screen, the screen handler let the user sign in by using previously-used UserContext and LoginPerformer, and dripping the |is_forcing_dircrypto| flag. BUG=706017 TEST=manually tested following cases on samus with ARC support. 1) Enable the flag in owner profile, create a cryptohome in ecryptfs, and sign in to the new profile. It showed migration screen. 2) Clicking "SKIP" on the screen shows the user's desktop. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2798023005 Cr-Commit-Position: refs/heads/master@{#462773} Committed: https://chromium.googlesource.com/chromium/src/+/1b5ebe9539b3bd7e074075a2de5a355944ba07e8

Patch Set 1 #

Total comments: 10

Patch Set 2 : Pass a callback instead of LoginPerformer to perform login using previously-used LoginPerformer. #

Patch Set 3 : Add enable-encryption-migration to histgrams.xml. #

Total comments: 2

Patch Set 4 : Bind |auth_mode| #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -2 lines) Patch
M chrome/browser/about_flags.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 chunks +23 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/screens/encryption_migration_screen.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/screens/encryption_migration_screen.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/screens/encryption_migration_screen_view.h View 1 2 3 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.h View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_encryption_migration.js View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.h View 1 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc View 1 2 3 6 chunks +24 lines, -0 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/cryptohome/cryptohome_parameters.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/cryptohome/homedir_methods.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/login/auth/cryptohome_authenticator.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/login/auth/user_context.h View 3 chunks +3 lines, -0 lines 0 comments Download
M chromeos/login/auth/user_context.cc View 3 chunks +9 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
fukino
Hi Xiyuan, could you take a look? https://codereview.chromium.org/2798023005/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/2798023005/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc#newcode622 chrome/browser/chromeos/login/existing_user_controller.cc:622: migration_screen->SetLoginPerformer(login_performer_.get()); I'm ...
3 years, 8 months ago (2017-04-05 15:59:57 UTC) #6
xiyuan
https://codereview.chromium.org/2798023005/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/2798023005/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc#newcode622 chrome/browser/chromeos/login/existing_user_controller.cc:622: migration_screen->SetLoginPerformer(login_performer_.get()); On 2017/04/05 15:59:56, fukino wrote: > I'm not ...
3 years, 8 months ago (2017-04-05 21:15:11 UTC) #7
fukino
Thank you for the review and suggestions! Could you take another look? https://codereview.chromium.org/2798023005/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc ...
3 years, 8 months ago (2017-04-06 14:22:17 UTC) #10
fukino
isherman@: Could you take a look at histograms.xml? Thanks!
3 years, 8 months ago (2017-04-06 14:31:19 UTC) #16
xiyuan
lgtm https://codereview.chromium.org/2798023005/diff/40001/chrome/browser/chromeos/login/existing_user_controller.h File chrome/browser/chromeos/login/existing_user_controller.h (right): https://codereview.chromium.org/2798023005/diff/40001/chrome/browser/chromeos/login/existing_user_controller.h#newcode225 chrome/browser/chromeos/login/existing_user_controller.h:225: LoginPerformer::AuthorizationMode auth_mode); nit: maybe we should swap the ...
3 years, 8 months ago (2017-04-06 16:08:59 UTC) #19
Ilya Sherman
histograms.xml lgtm
3 years, 8 months ago (2017-04-06 22:06:09 UTC) #20
fukino
Thank you for the suggestion! https://codereview.chromium.org/2798023005/diff/40001/chrome/browser/chromeos/login/existing_user_controller.h File chrome/browser/chromeos/login/existing_user_controller.h (right): https://codereview.chromium.org/2798023005/diff/40001/chrome/browser/chromeos/login/existing_user_controller.h#newcode225 chrome/browser/chromeos/login/existing_user_controller.h:225: LoginPerformer::AuthorizationMode auth_mode); On 2017/04/06 ...
3 years, 8 months ago (2017-04-07 02:05:49 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2798023005/60001
3 years, 8 months ago (2017-04-07 02:06:29 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 05:36:33 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/1b5ebe9539b3bd7e074075a2de5a...

Powered by Google App Engine
This is Rietveld 408576698