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

Issue 50093002: Added a timeout for platform verification key generation. (Closed)

Created:
7 years, 1 month ago by Darren Krahn
Modified:
7 years, 1 month ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, dkrahn+watch_chromium.org
Visibility:
Public.

Description

Added a timeout for platform verification key generation. The first time platform verification is invoked for a particular site, at least one key generation must be performed by the TPM. This typically takes around two seconds but on some models can take over a minute. Adding a timeout allows for a better user experience. BUG=chromium:309169 TEST=unit, manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232637

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Total comments: 9

Patch Set 3 : use base::Timer #

Total comments: 1

Patch Set 4 : rebased #

Patch Set 5 : rebased #

Patch Set 6 : fix clang error #

Patch Set 7 : fixed browsertest #

Messages

Total messages: 25 (0 generated)
Darren Krahn
pastarmovj - owner of attestation dmichael - owner of pepper
7 years, 1 month ago (2013-10-29 00:04:38 UTC) #1
pastarmovj
https://chromiumcodereview.appspot.com/50093002/diff/1/chrome/browser/chromeos/attestation/platform_verification_flow.h File chrome/browser/chromeos/attestation/platform_verification_flow.h (right): https://chromiumcodereview.appspot.com/50093002/diff/1/chrome/browser/chromeos/attestation/platform_verification_flow.h#newcode47 chrome/browser/chromeos/attestation/platform_verification_flow.h:47: : public base::RefCountedThreadSafe<PlatformVerificationFlow> { From looking at this CL ...
7 years, 1 month ago (2013-10-29 09:24:28 UTC) #2
dmichael (off chromium)
https://codereview.chromium.org/50093002/diff/1/chrome/browser/chromeos/attestation/platform_verification_flow.cc File chrome/browser/chromeos/attestation/platform_verification_flow.cc (right): https://codereview.chromium.org/50093002/diff/1/chrome/browser/chromeos/attestation/platform_verification_flow.cc#newcode131 chrome/browser/chromeos/attestation/platform_verification_flow.cc:131: base::Bind(&PlatformVerificationFlow::CheckConsent, this, context), Can you just use WeakPtrFactory instead ...
7 years, 1 month ago (2013-10-29 16:27:13 UTC) #3
Darren Krahn
https://codereview.chromium.org/50093002/diff/1/chrome/browser/chromeos/attestation/platform_verification_flow.cc File chrome/browser/chromeos/attestation/platform_verification_flow.cc (right): https://codereview.chromium.org/50093002/diff/1/chrome/browser/chromeos/attestation/platform_verification_flow.cc#newcode131 chrome/browser/chromeos/attestation/platform_verification_flow.cc:131: base::Bind(&PlatformVerificationFlow::CheckConsent, this, context), On 2013/10/29 16:27:13, dmichael wrote: > ...
7 years, 1 month ago (2013-10-29 17:23:03 UTC) #4
pastarmovj
lgtm. https://codereview.chromium.org/50093002/diff/1/chrome/browser/chromeos/attestation/platform_verification_flow.h File chrome/browser/chromeos/attestation/platform_verification_flow.h (right): https://codereview.chromium.org/50093002/diff/1/chrome/browser/chromeos/attestation/platform_verification_flow.h#newcode47 chrome/browser/chromeos/attestation/platform_verification_flow.h:47: : public base::RefCountedThreadSafe<PlatformVerificationFlow> { On 2013/10/29 17:23:04, Darren ...
7 years, 1 month ago (2013-10-30 10:20:21 UTC) #5
DaleCurtis
https://chromiumcodereview.appspot.com/50093002/diff/80001/chrome/browser/chromeos/attestation/platform_verification_flow.h File chrome/browser/chromeos/attestation/platform_verification_flow.h (right): https://chromiumcodereview.appspot.com/50093002/diff/80001/chrome/browser/chromeos/attestation/platform_verification_flow.h#newcode158 chrome/browser/chromeos/attestation/platform_verification_flow.h:158: struct TimeoutStatus : public base::RefCountedThreadSafe<TimeoutStatus> { Why all this ...
7 years, 1 month ago (2013-10-30 18:06:00 UTC) #6
dmichael (off chromium)
pepper stuff lgtm
7 years, 1 month ago (2013-10-30 18:11:16 UTC) #7
Darren Krahn
https://codereview.chromium.org/50093002/diff/80001/chrome/browser/chromeos/attestation/platform_verification_flow.h File chrome/browser/chromeos/attestation/platform_verification_flow.h (right): https://codereview.chromium.org/50093002/diff/80001/chrome/browser/chromeos/attestation/platform_verification_flow.h#newcode158 chrome/browser/chromeos/attestation/platform_verification_flow.h:158: struct TimeoutStatus : public base::RefCountedThreadSafe<TimeoutStatus> { On 2013/10/30 18:06:00, ...
7 years, 1 month ago (2013-10-30 19:14:29 UTC) #8
DaleCurtis
https://codereview.chromium.org/50093002/diff/80001/chrome/browser/chromeos/attestation/platform_verification_flow.cc File chrome/browser/chromeos/attestation/platform_verification_flow.cc (right): https://codereview.chromium.org/50093002/diff/80001/chrome/browser/chromeos/attestation/platform_verification_flow.cc#newcode206 chrome/browser/chromeos/attestation/platform_verification_flow.cc:206: scoped_refptr<TimeoutStatus> timeout_status(new TimeoutStatus); TimeoutStatus() https://codereview.chromium.org/50093002/diff/80001/chrome/browser/chromeos/attestation/platform_verification_flow.cc#newcode229 chrome/browser/chromeos/attestation/platform_verification_flow.cc:229: TimeoutStatus* timeout_status, Usage ...
7 years, 1 month ago (2013-10-30 20:11:52 UTC) #9
Darren Krahn
https://codereview.chromium.org/50093002/diff/80001/chrome/browser/chromeos/attestation/platform_verification_flow.cc File chrome/browser/chromeos/attestation/platform_verification_flow.cc (right): https://codereview.chromium.org/50093002/diff/80001/chrome/browser/chromeos/attestation/platform_verification_flow.cc#newcode229 chrome/browser/chromeos/attestation/platform_verification_flow.cc:229: TimeoutStatus* timeout_status, On 2013/10/30 20:11:52, DaleCurtis wrote: > Usage ...
7 years, 1 month ago (2013-10-30 22:24:52 UTC) #10
DaleCurtis
lgtm https://codereview.chromium.org/50093002/diff/200001/chrome/browser/chromeos/attestation/platform_verification_flow.cc File chrome/browser/chromeos/attestation/platform_verification_flow.cc (right): https://codereview.chromium.org/50093002/diff/200001/chrome/browser/chromeos/attestation/platform_verification_flow.cc#newcode208 chrome/browser/chromeos/attestation/platform_verification_flow.cc:208: scoped_ptr<base::Timer> timer(new base::Timer(false, // Don't retain. Timer(false, false) ...
7 years, 1 month ago (2013-10-30 22:53:17 UTC) #11
Darren Krahn
On 2013/10/30 22:53:17, DaleCurtis wrote: > lgtm > > https://codereview.chromium.org/50093002/diff/200001/chrome/browser/chromeos/attestation/platform_verification_flow.cc > File chrome/browser/chromeos/attestation/platform_verification_flow.cc (right): > ...
7 years, 1 month ago (2013-10-30 23:08:01 UTC) #12
Darren Krahn
On 2013/10/30 23:08:01, Darren Krahn wrote: > On 2013/10/30 22:53:17, DaleCurtis wrote: > > lgtm ...
7 years, 1 month ago (2013-10-30 23:09:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dkrahn@chromium.org/50093002/300001
7 years, 1 month ago (2013-11-01 18:37:52 UTC) #14
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-01 19:33:18 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dkrahn@chromium.org/50093002/300001
7 years, 1 month ago (2013-11-01 20:43:11 UTC) #16
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-01 22:09:26 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dkrahn@chromium.org/50093002/570001
7 years, 1 month ago (2013-11-02 01:04:58 UTC) #18
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-02 01:57:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dkrahn@chromium.org/50093002/760001
7 years, 1 month ago (2013-11-02 04:31:16 UTC) #20
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=218034
7 years, 1 month ago (2013-11-02 06:59:12 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dkrahn@chromium.org/50093002/760001
7 years, 1 month ago (2013-11-02 16:57:55 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dkrahn@chromium.org/50093002/760001
7 years, 1 month ago (2013-11-02 17:01:22 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dkrahn@chromium.org/50093002/760001
7 years, 1 month ago (2013-11-02 19:35:12 UTC) #24
commit-bot: I haz the power
7 years, 1 month ago (2013-11-02 21:08:53 UTC) #25
Message was sent while issue was closed.
Change committed as 232637

Powered by Google App Engine
This is Rietveld 408576698