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

Issue 2838303003: cros: Remove user directory when encryption migration fails. (Closed)

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

Description

cros: Remove user directory when encryption migration fails. When the migration UI is notified by cryptohome that cryptohome gets unexpected errors during migration and it gives up migration, we should remove the user's cryptohome to make sure that the user will be able to log in to the Desktop next time. After the user's cryptohome is removed, we get password verification errors on the existing user pod three times. It seems an independent issue, so I filed crbug.com/715474 and will look into separately. BUG=713556 TEST=manually tested by forcing cryptohome fail during migration and confirming the cryptohome is gone. Review-Url: https://codereview.chromium.org/2838303003 Cr-Commit-Position: refs/heads/master@{#467608} Committed: https://chromium.googlesource.com/chromium/src/+/1339ec6addf0faa53da2c7418a0de5b6803d89cf

Patch Set 1 #

Total comments: 7

Patch Set 2 : Force GAIA login after removing cryptohome. #

Total comments: 2

Patch Set 3 : Add a comment about token invalidation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -7 lines) Patch
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc View 1 2 4 chunks +26 lines, -7 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
fukino
Xiyuan, could you take a look?
3 years, 8 months ago (2017-04-26 09:57:44 UTC) #3
fukino
https://codereview.chromium.org/2838303003/diff/1/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc (right): https://codereview.chromium.org/2838303003/diff/1/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc#newcode317 chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc:317: cryptohome::AsyncMethodCaller::GetInstance()->AsyncRemove( Instead of calling AsyncRemove directly, we should be ...
3 years, 8 months ago (2017-04-26 11:01:43 UTC) #8
xiyuan
https://codereview.chromium.org/2838303003/diff/1/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc (right): https://codereview.chromium.org/2838303003/diff/1/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc#newcode317 chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc:317: cryptohome::AsyncMethodCaller::GetInstance()->AsyncRemove( On 2017/04/26 11:01:43, fukino wrote: > Instead of ...
3 years, 8 months ago (2017-04-26 17:48:24 UTC) #9
fukino
https://codereview.chromium.org/2838303003/diff/1/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc (right): https://codereview.chromium.org/2838303003/diff/1/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc#newcode317 chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc:317: cryptohome::AsyncMethodCaller::GetInstance()->AsyncRemove( On 2017/04/26 17:48:24, xiyuan wrote: > On 2017/04/26 ...
3 years, 8 months ago (2017-04-27 01:38:23 UTC) #12
xiyuan
lgtm https://codereview.chromium.org/2838303003/diff/20001/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc (right): https://codereview.chromium.org/2838303003/diff/20001/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc#newcode318 chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc:318: user_manager::UserManager::Get()->SaveUserOAuthStatus( nit: Add a comment to document why ...
3 years, 7 months ago (2017-04-27 02:50:42 UTC) #15
fukino
Thank you! https://codereview.chromium.org/2838303003/diff/20001/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc (right): https://codereview.chromium.org/2838303003/diff/20001/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc#newcode318 chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc:318: user_manager::UserManager::Get()->SaveUserOAuthStatus( On 2017/04/27 02:50:42, xiyuan wrote: > ...
3 years, 7 months ago (2017-04-27 06:13:59 UTC) #16
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/2838303003/40001
3 years, 7 months ago (2017-04-27 06:14:21 UTC) #19
commit-bot: I haz the power
3 years, 7 months ago (2017-04-27 06:48:52 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/1339ec6addf0faa53da2c7418a0d...

Powered by Google App Engine
This is Rietveld 408576698