Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Issue 15649018: Call crypto::InitializeTPMToken on the IO thread (Closed)

Created:
7 years, 6 months ago by stevenjb
Modified:
7 years, 6 months ago
CC:
chromium-reviews, gauravsh+watch_chromium.org, gspencer+watch_chromium.org, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Visibility:
Public.

Description

Call crypto::InitializeTPMToken on the IO thread This appears to work, and scanning through the code I don't see any red flags, but I'm not all that familiar with the crypto code, so I don't know whether this might introduce any new/additional threading issues? BUG=244455 For chrome/browser/ui/webui/options/certificate_manager_browsertest.cc [email protected] Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206265

Patch Set 1 #

Patch Set 2 : Add localized Auth error messages #

Patch Set 3 : Pass IO thread to CertLoader #

Patch Set 4 : Rebase #

Patch Set 5 : Merge #

Total comments: 17

Patch Set 6 : Address feedback; use PostTaskAndReply #

Patch Set 7 : Test #

Total comments: 4

Patch Set 8 : Test2 #

Patch Set 9 : Elim need for crypto WeakPtrFactory #

Patch Set 10 : Rebase #

Patch Set 11 : Fix tests #

Total comments: 4

Patch Set 12 : Better fix for tests #

Patch Set 13 : rebase #

Total comments: 1

Patch Set 14 : Add CertLoader::SetCryptoTaskRunner #

Patch Set 15 : Rebase #

Patch Set 16 : Rebase #

Total comments: 4

Patch Set 17 : Address feedback #

Total comments: 2

Patch Set 18 : Rebase, move declaration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -32 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/certificate_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/cert_loader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +20 lines, -3 lines 0 comments Download
M chromeos/network/cert_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +67 lines, -26 lines 0 comments Download
M chromeos/network/network_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
stevenjb
7 years, 6 months ago (2013-05-31 23:36:48 UTC) #1
Ryan Sleevi
NACK InitializeTPMToken() should *only* be called on the IO thread. It's the only safe place ...
7 years, 6 months ago (2013-05-31 23:40:32 UTC) #2
stevenjb
On 2013/05/31 23:40:32, Ryan Sleevi wrote: > NACK > > InitializeTPMToken() should *only* be called ...
7 years, 6 months ago (2013-06-01 00:11:15 UTC) #3
Ryan Sleevi
On 2013/06/01 00:11:15, stevenjb (chromium) wrote: > On 2013/05/31 23:40:32, Ryan Sleevi wrote: > > ...
7 years, 6 months ago (2013-06-01 00:14:59 UTC) #4
stevenjb
On 2013/06/01 00:14:59, Ryan Sleevi wrote: > On 2013/06/01 00:11:15, stevenjb (chromium) wrote: > > ...
7 years, 6 months ago (2013-06-06 17:29:36 UTC) #5
Ryan Sleevi
On 2013/06/06 17:29:36, stevenjb (chromium) wrote: > On 2013/06/01 00:14:59, Ryan Sleevi wrote: > > ...
7 years, 6 months ago (2013-06-06 22:53:38 UTC) #6
Ryan Sleevi
Looking much better. A few comments: https://codereview.chromium.org/15649018/diff/19001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/15649018/diff/19001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode841 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:841: // Destroy DBus ...
7 years, 6 months ago (2013-06-06 23:03:40 UTC) #7
stevenjb
PTAL https://codereview.chromium.org/15649018/diff/19001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/15649018/diff/19001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode841 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:841: // Destroy DBus services after g_borowser_process and Ash ...
7 years, 6 months ago (2013-06-07 02:37:47 UTC) #8
pneubeck (no reviews)
lgtm https://codereview.chromium.org/15649018/diff/32001/chrome/browser/chromeos/login/login_utils_browsertest.cc File chrome/browser/chromeos/login/login_utils_browsertest.cc (right): https://codereview.chromium.org/15649018/diff/32001/chrome/browser/chromeos/login/login_utils_browsertest.cc#newcode284 chrome/browser/chromeos/login/login_utils_browsertest.cc:284: NetworkHandler::InitializeForTest(); This test has an IOThread, will it ...
7 years, 6 months ago (2013-06-07 14:00:49 UTC) #9
Ryan Sleevi
Looks like you're still doing testing with this?
7 years, 6 months ago (2013-06-07 17:23:04 UTC) #10
stevenjb
On 2013/06/07 17:23:04, Ryan Sleevi wrote: > Looks like you're still doing testing with this? ...
7 years, 6 months ago (2013-06-07 17:30:01 UTC) #11
stevenjb
OK, this is why I shouldn't work late; passing a WeakPtr to another thread is, ...
7 years, 6 months ago (2013-06-07 20:48:14 UTC) #12
Ryan Sleevi
Much better! Mostly nits at this point. I'm happy to LGTM, although please see the ...
7 years, 6 months ago (2013-06-07 23:12:43 UTC) #13
stevenjb
https://codereview.chromium.org/15649018/diff/19001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/15649018/diff/19001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode843 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:843: dbus_services_.reset(); On 2013/06/07 23:12:43, Ryan Sleevi wrote: > On ...
7 years, 6 months ago (2013-06-08 02:06:50 UTC) #14
pneubeck (no reviews)
CertLoader/NetworkHandler depends on IOThread IOThread depends on NetworkHandler through ProxyConfigServiceImpl. It only works currently, because ...
7 years, 6 months ago (2013-06-10 08:36:15 UTC) #15
Ryan Sleevi
Sounds like pneubeck has some concerns, but from my side, the rest LGTM, mod nit. ...
7 years, 6 months ago (2013-06-10 17:33:57 UTC) #16
stevenjb
On 2013/06/10 08:36:15, pneubeck wrote: > CertLoader/NetworkHandler depends on IOThread > IOThread depends on NetworkHandler ...
7 years, 6 months ago (2013-06-11 15:33:32 UTC) #17
stevenjb
On 2013/06/11 15:33:32, stevenjb (chromium) wrote: > On 2013/06/10 08:36:15, pneubeck wrote: > > CertLoader/NetworkHandler ...
7 years, 6 months ago (2013-06-11 18:35:01 UTC) #18
stevenjb
OK, I added CertLoader::SetCryptoTaskRunner and modified RequestCertificates to fail if not set. This makes the ...
7 years, 6 months ago (2013-06-12 20:38:46 UTC) #19
Ryan Sleevi
https://codereview.chromium.org/15649018/diff/91001/chromeos/network/cert_loader.cc File chromeos/network/cert_loader.cc (right): https://codereview.chromium.org/15649018/diff/91001/chromeos/network/cert_loader.cc#newcode112 chromeos/network/cert_loader.cc:112: !LoginState::Get()->IsUserLoggedIn() || Is this check safe, considering the check ...
7 years, 6 months ago (2013-06-12 20:58:50 UTC) #20
stevenjb
https://codereview.chromium.org/15649018/diff/91001/chromeos/network/cert_loader.cc File chromeos/network/cert_loader.cc (right): https://codereview.chromium.org/15649018/diff/91001/chromeos/network/cert_loader.cc#newcode112 chromeos/network/cert_loader.cc:112: !LoginState::Get()->IsUserLoggedIn() || On 2013/06/12 20:58:50, Ryan Sleevi wrote: > ...
7 years, 6 months ago (2013-06-12 21:08:31 UTC) #21
pneubeck (no reviews)
lgtm. One tiny nit. https://codereview.chromium.org/15649018/diff/97001/chromeos/network/cert_loader.h File chromeos/network/cert_loader.h (right): https://codereview.chromium.org/15649018/diff/97001/chromeos/network/cert_loader.h#newcode97 chromeos/network/cert_loader.h:97: void OnPersistentNSSDBOpened(); nit: move behind ...
7 years, 6 months ago (2013-06-13 07:17:33 UTC) #22
stevenjb
https://codereview.chromium.org/15649018/diff/97001/chromeos/network/cert_loader.h File chromeos/network/cert_loader.h (right): https://codereview.chromium.org/15649018/diff/97001/chromeos/network/cert_loader.h#newcode97 chromeos/network/cert_loader.h:97: void OnPersistentNSSDBOpened(); On 2013/06/13 07:17:33, pneubeck wrote: > nit: ...
7 years, 6 months ago (2013-06-13 16:39:39 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/15649018/101002
7 years, 6 months ago (2013-06-13 16:39:42 UTC) #24
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=8947
7 years, 6 months ago (2013-06-13 16:47:54 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/15649018/101002
7 years, 6 months ago (2013-06-13 22:04:23 UTC) #26
commit-bot: I haz the power
7 years, 6 months ago (2013-06-14 01:14:28 UTC) #27
Message was sent while issue was closed.
Change committed as 206265

Powered by Google App Engine
This is Rietveld 408576698