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

Issue 2784273003: Implement a basic UI flow for cryptohome encryption migration. (Closed)

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

Description

Implement a basic UI flow for cryptohome encryption migration. This CL implements the basic flow: On clicking "Upgrade", the handler calls cryptohome API to start migration, updates the progress bar on the UI, and tell the user that the migration is finished. This includes following changes: - Pass user_context from the authenticator to screen handler to use it for cryptohome migration API. - Add <encryption-migration> Polymer element which has the actual migration UI. - Modify FakeCryptohomeClient to send progress callbacks while migrating. Note that all strings are just place holders for now (UX team is working on the strings). They are not populated as i18n-content not to be translated. BUG=706017 TEST=on Linux, run chrome (for ChromeOS) with --test-encryption-migration-ui --login-manager and sign in to an existing user should show a UI. Pressing "Upgrade" shows progress bar and a screen which says it finished successfully. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2784273003 Cr-Commit-Position: refs/heads/master@{#461029} Committed: https://chromium.googlesource.com/chromium/src/+/2c22b15a9fcf87047dbd6655037f09eb7232cc85

Patch Set 1 #

Patch Set 2 : . #

Total comments: 10

Patch Set 3 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+462 lines, -18 lines) Patch
M chrome/browser/chromeos/login/existing_user_controller.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 3 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/screens/encryption_migration_screen.h View 1 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/screens/encryption_migration_screen.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/screens/encryption_migration_screen_view.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/custom_elements_login.html View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/custom_elements_login.js View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/login/encryption_migration.css View 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/login/encryption_migration.html View 1 2 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/login/encryption_migration.js View 1 chunk +113 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_encryption_migration.html View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/login/screen_encryption_migration.js View 3 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.h View 1 2 2 chunks +42 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc View 1 2 3 chunks +104 lines, -1 line 0 comments Download
M chromeos/dbus/fake_cryptohome_client.h View 3 chunks +10 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_cryptohome_client.cc View 1 2 4 chunks +35 lines, -1 line 0 comments Download
M chromeos/login/auth/auth_status_consumer.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/login/auth/auth_status_consumer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/login/auth/cryptohome_authenticator.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/login/auth/login_performer.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/login/auth/login_performer.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
fukino
Xiyuan, could you take a look?
3 years, 8 months ago (2017-03-30 15:00:05 UTC) #6
xiyuan
lgtm with nits https://codereview.chromium.org/2784273003/diff/20001/chrome/browser/chromeos/login/screens/encryption_migration_screen.cc File chrome/browser/chromeos/login/screens/encryption_migration_screen.cc (right): https://codereview.chromium.org/2784273003/diff/20001/chrome/browser/chromeos/login/screens/encryption_migration_screen.cc#newcode50 chrome/browser/chromeos/login/screens/encryption_migration_screen.cc:50: if (view_) Remove the "if" to ...
3 years, 8 months ago (2017-03-30 17:55:40 UTC) #9
fukino
Thank you! https://codereview.chromium.org/2784273003/diff/20001/chrome/browser/chromeos/login/screens/encryption_migration_screen.cc File chrome/browser/chromeos/login/screens/encryption_migration_screen.cc (right): https://codereview.chromium.org/2784273003/diff/20001/chrome/browser/chromeos/login/screens/encryption_migration_screen.cc#newcode50 chrome/browser/chromeos/login/screens/encryption_migration_screen.cc:50: if (view_) On 2017/03/30 17:55:39, xiyuan wrote: ...
3 years, 8 months ago (2017-03-31 02:29:53 UTC) #10
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/2784273003/40001
3 years, 8 months ago (2017-03-31 02:31:19 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 04:36:02 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/2c22b15a9fcf87047dbd6655037f...

Powered by Google App Engine
This is Rietveld 408576698