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

Issue 2817933003: Wait for Cryptohome service to be available on login. (Closed)

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

Description

Wait for Cryptohome service to be available on login. It could happen that cryptohome service is not yet available during login in ExistingUserController, especially for auto-launched public sessions or ARC Kiosk. In that case mounting will fail and session will exit. It's safer to use CryptohomeClient::WaitForServiceToBeAvailable to ensure. BUG=702045 Review-Url: https://codereview.chromium.org/2817933003 Cr-Commit-Position: refs/heads/master@{#465641} Committed: https://chromium.googlesource.com/chromium/src/+/acba6ce3ba4f318e84b772ce094cc8990bdf2022

Patch Set 1 #

Total comments: 2

Patch Set 2 : better error handling + fix ExistingUserControllerActiveDirectoryTest #

Total comments: 5

Patch Set 3 : use OnceClosure for ContinueLoginWhenCryptohomeAvailable #

Total comments: 4

Patch Set 4 : remove useless const and std::move #

Total comments: 4

Patch Set 5 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -1 line) Patch
M chrome/browser/chromeos/login/existing_user_controller.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 2 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller_browsertest.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (21 generated)
Sergey Poromov
Hey Xiyuan, please review the solution. While I don't have Samus device right now to ...
3 years, 8 months ago (2017-04-13 17:38:02 UTC) #2
xiyuan
Think the approach should fix the issue. Just one nit. https://codereview.chromium.org/2817933003/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/2817933003/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc#newcode1245 ...
3 years, 8 months ago (2017-04-13 18:07:31 UTC) #5
Sergey Poromov
https://codereview.chromium.org/2817933003/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/2817933003/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc#newcode1245 chrome/browser/chromeos/login/existing_user_controller.cc:1245: login_display_->SetUIEnabled(true); On 2017/04/13 18:07:31, xiyuan wrote: > How about ...
3 years, 8 months ago (2017-04-18 12:50:56 UTC) #11
Roman Sorokin (ftl)
https://codereview.chromium.org/2817933003/diff/20001/chrome/browser/chromeos/login/existing_user_controller.h File chrome/browser/chromeos/login/existing_user_controller.h (right): https://codereview.chromium.org/2817933003/diff/20001/chrome/browser/chromeos/login/existing_user_controller.h#newcode255 chrome/browser/chromeos/login/existing_user_controller.h:255: void ContinueLoginWhenCryptohomeAvailable(const base::Closure& continuation, Why not OnceClosure?
3 years, 8 months ago (2017-04-18 13:30:42 UTC) #14
Sergey Poromov
https://codereview.chromium.org/2817933003/diff/20001/chrome/browser/chromeos/login/existing_user_controller.h File chrome/browser/chromeos/login/existing_user_controller.h (right): https://codereview.chromium.org/2817933003/diff/20001/chrome/browser/chromeos/login/existing_user_controller.h#newcode255 chrome/browser/chromeos/login/existing_user_controller.h:255: void ContinueLoginWhenCryptohomeAvailable(const base::Closure& continuation, On 2017/04/18 13:30:42, Roman Sorokin ...
3 years, 8 months ago (2017-04-18 14:16:39 UTC) #15
Roman Sorokin (ftl)
lgtm https://codereview.chromium.org/2817933003/diff/20001/chrome/browser/chromeos/login/existing_user_controller.h File chrome/browser/chromeos/login/existing_user_controller.h (right): https://codereview.chromium.org/2817933003/diff/20001/chrome/browser/chromeos/login/existing_user_controller.h#newcode255 chrome/browser/chromeos/login/existing_user_controller.h:255: void ContinueLoginWhenCryptohomeAvailable(const base::Closure& continuation, On 2017/04/18 14:16:39, Sergey ...
3 years, 8 months ago (2017-04-18 14:30:18 UTC) #16
Sergey Poromov
https://codereview.chromium.org/2817933003/diff/20001/chrome/browser/chromeos/login/existing_user_controller.h File chrome/browser/chromeos/login/existing_user_controller.h (right): https://codereview.chromium.org/2817933003/diff/20001/chrome/browser/chromeos/login/existing_user_controller.h#newcode255 chrome/browser/chromeos/login/existing_user_controller.h:255: void ContinueLoginWhenCryptohomeAvailable(const base::Closure& continuation, On 2017/04/18 14:16:39, Sergey Poromov ...
3 years, 8 months ago (2017-04-18 14:30:19 UTC) #17
xiyuan
https://codereview.chromium.org/2817933003/diff/40001/chrome/browser/chromeos/login/existing_user_controller.h File chrome/browser/chromeos/login/existing_user_controller.h (right): https://codereview.chromium.org/2817933003/diff/40001/chrome/browser/chromeos/login/existing_user_controller.h#newcode256 chrome/browser/chromeos/login/existing_user_controller.h:256: const base::OnceClosure continuation, This could not be "const" since ...
3 years, 8 months ago (2017-04-18 16:38:00 UTC) #22
Roman Sorokin (ftl)
https://codereview.chromium.org/2817933003/diff/40001/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/2817933003/diff/40001/chrome/browser/chromeos/login/existing_user_controller.cc#newcode1301 chrome/browser/chromeos/login/existing_user_controller.cc:1301: weak_factory_.GetWeakPtr(), std::move(continuation))); std::move on const & does nothing AFAIK. ...
3 years, 8 months ago (2017-04-19 09:00:09 UTC) #23
Sergey Poromov
https://codereview.chromium.org/2817933003/diff/40001/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/2817933003/diff/40001/chrome/browser/chromeos/login/existing_user_controller.cc#newcode1301 chrome/browser/chromeos/login/existing_user_controller.cc:1301: weak_factory_.GetWeakPtr(), std::move(continuation))); On 2017/04/19 09:00:09, Roman Sorokin (fast) wrote: ...
3 years, 8 months ago (2017-04-19 11:08:25 UTC) #25
Roman Sorokin (ftl)
https://codereview.chromium.org/2817933003/diff/60001/chrome/browser/chromeos/login/existing_user_controller.h File chrome/browser/chromeos/login/existing_user_controller.h (right): https://codereview.chromium.org/2817933003/diff/60001/chrome/browser/chromeos/login/existing_user_controller.h#newcode254 chrome/browser/chromeos/login/existing_user_controller.h:254: // Invokes |continuation| after verifying that cryptohome service is ...
3 years, 8 months ago (2017-04-19 11:26:02 UTC) #27
Sergey Poromov
https://codereview.chromium.org/2817933003/diff/60001/chrome/browser/chromeos/login/existing_user_controller.h File chrome/browser/chromeos/login/existing_user_controller.h (right): https://codereview.chromium.org/2817933003/diff/60001/chrome/browser/chromeos/login/existing_user_controller.h#newcode254 chrome/browser/chromeos/login/existing_user_controller.h:254: // Invokes |continuation| after verifying that cryptohome service is ...
3 years, 8 months ago (2017-04-19 11:38:06 UTC) #30
Roman Sorokin (ftl)
lgtm
3 years, 8 months ago (2017-04-19 11:40:48 UTC) #31
xiyuan
lgtm
3 years, 8 months ago (2017-04-19 16:21:57 UTC) #32
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/2817933003/80001
3 years, 8 months ago (2017-04-19 16:32:23 UTC) #34
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 17:01:16 UTC) #37
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/acba6ce3ba4f318e84b772ce094c...

Powered by Google App Engine
This is Rietveld 408576698