cryptohome: Do not ignore the system slot id returned by GetTpmTokenSlotForPath
When TPM/chaps is not fully initialized, the method returns -1 and Chrome should attempt a retry later. The existing implementation overwrote the slot id always by 0 and as a result disabled the retry, leading to a failure on establishing the device ownership on certain cases. BUG=b/37259691 TEST=`cros flash ssh://dut xbuddy://remote/samus/R61-9693.0.0/test; test_that --args="value='samus-release/R61-9694.0.0'" provision_AutoUpdate; test_that cheets_StartAndroid` > "Manage other people" setting is modifiable. Change-Id: I9ebb731ba8004a61a9d868f3e586fe32d1979ab9 Reviewed-on: https://chromium-review.googlesource.com/558528Reviewed-by:Matt Mueller <mattm@chromium.org> Reviewed-by:
Ryo Hashimoto <hashimoto@chromium.org> Commit-Queue: Kazuhiro Inaba <kinaba@chromium.org> Cr-Commit-Position: refs/heads/master@{#487409}
Showing
Please register or sign in to comment