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

Issue 11411013: Initialize NSS in the PPAPI process for ClearKey CDM. (Closed)

Created:
8 years, 1 month ago by Jorge Lucangeli Obes
Modified:
8 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jln (very slow on Chromium)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Initialize NSS in the PPAPI process for ClearKey CDM. BUG=156864 TEST=content_browsertests passes on linux_rel_precise. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168372

Patch Set 1 #

Patch Set 2 : Upload something that actually compiles. #

Total comments: 2

Patch Set 3 : Add DisableNSSForkCheck to wrapper for future use. #

Total comments: 4

Patch Set 4 : Address nits in comments. #

Total comments: 2

Patch Set 5 : Rebase and address Brett's comment. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
M content/ppapi_plugin/ppapi_plugin_main.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M crypto/nss_util.h View 1 2 3 4 2 chunks +11 lines, -1 line 2 comments Download
M crypto/nss_util.cc View 1 2 3 4 1 chunk +11 lines, -0 lines 1 comment Download

Messages

Total messages: 21 (0 generated)
Jorge Lucangeli Obes
Taking over this one (https://codereview.chromium.org/11231021) since Julien is busy with other stuff. There's another NSS ...
8 years, 1 month ago (2012-11-15 19:40:28 UTC) #1
Ryan Sleevi
https://chromiumcodereview.appspot.com/11411013/diff/3001/content/ppapi_plugin/ppapi_plugin_main.cc File content/ppapi_plugin/ppapi_plugin_main.cc (right): https://chromiumcodereview.appspot.com/11411013/diff/3001/content/ppapi_plugin/ppapi_plugin_main.cc#newcode88 content/ppapi_plugin/ppapi_plugin_main.cc:88: InitializeSandbox(); Just showing my own ignorance here: This call ...
8 years, 1 month ago (2012-11-15 19:48:02 UTC) #2
Jorge Lucangeli Obes
https://chromiumcodereview.appspot.com/11411013/diff/3001/content/ppapi_plugin/ppapi_plugin_main.cc File content/ppapi_plugin/ppapi_plugin_main.cc (right): https://chromiumcodereview.appspot.com/11411013/diff/3001/content/ppapi_plugin/ppapi_plugin_main.cc#newcode88 content/ppapi_plugin/ppapi_plugin_main.cc:88: InitializeSandbox(); On 2012/11/15 19:48:02, Ryan Sleevi wrote: > Just ...
8 years, 1 month ago (2012-11-15 19:50:25 UTC) #3
Ryan Sleevi
So this change LGTM. "It would be nice" to have NSS fully run in the ...
8 years, 1 month ago (2012-11-15 19:57:34 UTC) #4
Jorge Lucangeli Obes
On 2012/11/15 19:57:34, Ryan Sleevi wrote: > So this change LGTM. "It would be nice" ...
8 years, 1 month ago (2012-11-15 20:13:40 UTC) #5
Ryan Sleevi
On 2012/11/15 19:40:28, Jorge Lucangeli Obes wrote: > Taking over this one (https://codereview.chromium.org/11231021) since Julien ...
8 years, 1 month ago (2012-11-15 20:27:37 UTC) #6
Jorge Lucangeli Obes
On 2012/11/15 20:27:37, Ryan Sleevi wrote: > On 2012/11/15 19:40:28, Jorge Lucangeli Obes wrote: > ...
8 years, 1 month ago (2012-11-15 22:09:45 UTC) #7
Jorge Lucangeli Obes
On 2012/11/15 22:09:45, Jorge Lucangeli Obes wrote: > On 2012/11/15 20:27:37, Ryan Sleevi wrote: > ...
8 years, 1 month ago (2012-11-15 23:17:12 UTC) #8
jln (very slow on Chromium)
LGTM, with paranoia-nit https://chromiumcodereview.appspot.com/11411013/diff/8002/crypto/nss_util.cc File crypto/nss_util.cc (right): https://chromiumcodereview.appspot.com/11411013/diff/8002/crypto/nss_util.cc#newcode657 crypto/nss_util.cc:657: // but it's more correct to ...
8 years, 1 month ago (2012-11-15 23:22:18 UTC) #9
Jorge Lucangeli Obes
https://chromiumcodereview.appspot.com/11411013/diff/8002/crypto/nss_util.cc File crypto/nss_util.cc (right): https://chromiumcodereview.appspot.com/11411013/diff/8002/crypto/nss_util.cc#newcode657 crypto/nss_util.cc:657: // but it's more correct to tell NSS to ...
8 years, 1 month ago (2012-11-15 23:52:44 UTC) #10
Jorge Lucangeli Obes
On 2012/11/15 23:17:12, Jorge Lucangeli Obes wrote: > On 2012/11/15 22:09:45, Jorge Lucangeli Obes wrote: ...
8 years, 1 month ago (2012-11-15 23:58:35 UTC) #11
Jorge Lucangeli Obes
On 2012/11/15 23:58:35, Jorge Lucangeli Obes wrote: > On 2012/11/15 23:17:12, Jorge Lucangeli Obes wrote: ...
8 years, 1 month ago (2012-11-16 17:15:20 UTC) #12
jam
redirecting to brett
8 years, 1 month ago (2012-11-16 17:42:53 UTC) #13
Jorge Lucangeli Obes
On 2012/11/16 17:42:53, John Abd-El-Malek wrote: > redirecting to brett Thanks! Brett, this CL explicitly ...
8 years, 1 month ago (2012-11-16 17:45:59 UTC) #14
brettw
ppapi lgtm with comment. https://codereview.chromium.org/11411013/diff/8/content/ppapi_plugin/ppapi_plugin_main.cc File content/ppapi_plugin/ppapi_plugin_main.cc (right): https://codereview.chromium.org/11411013/diff/8/content/ppapi_plugin/ppapi_plugin_main.cc#newcode83 content/ppapi_plugin/ppapi_plugin_main.cc:83: // Some out-of-process PPAPI plugins ...
8 years, 1 month ago (2012-11-16 19:09:59 UTC) #15
Jorge Lucangeli Obes
https://codereview.chromium.org/11411013/diff/8/content/ppapi_plugin/ppapi_plugin_main.cc File content/ppapi_plugin/ppapi_plugin_main.cc (right): https://codereview.chromium.org/11411013/diff/8/content/ppapi_plugin/ppapi_plugin_main.cc#newcode83 content/ppapi_plugin/ppapi_plugin_main.cc:83: // Some out-of-process PPAPI plugins need access to NSS. ...
8 years, 1 month ago (2012-11-16 19:41:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jorgelo@chromium.org/11411013/11003
8 years, 1 month ago (2012-11-16 21:07:07 UTC) #17
commit-bot: I haz the power
Retried try job too often for step(s) interactive_ui_tests
8 years, 1 month ago (2012-11-16 22:00:32 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jorgelo@chromium.org/11411013/11003
8 years, 1 month ago (2012-11-16 22:01:59 UTC) #19
commit-bot: I haz the power
Change committed as 168372
8 years, 1 month ago (2012-11-17 03:57:59 UTC) #20
wtc
8 years, 1 month ago (2012-11-21 00:28:21 UTC) #21
Patch set 5 LGTM. My complaints are all on the function name
"WarmUpNSSSafely" and the header file comments that specify
what it does.

https://chromiumcodereview.appspot.com/11411013/diff/11003/crypto/nss_util.cc
File crypto/nss_util.cc (right):

https://chromiumcodereview.appspot.com/11411013/diff/11003/crypto/nss_util.cc...
crypto/nss_util.cc:661: crypto::EnsureNSSInit();

Remove the crypto:: prefixes because this is inside the
crypto namespace.

https://chromiumcodereview.appspot.com/11411013/diff/11003/crypto/nss_util.h
File crypto/nss_util.h (right):

https://chromiumcodereview.appspot.com/11411013/diff/11003/crypto/nss_util.h#...
crypto/nss_util.h:41: // sandboxed environment.

Why do you call this "WarmUp" as opposed to "Init"?

It's not clear what you meant by "safely". The second paragraph
seems to say this means not loading any security modules,
but still doesn't give a direct definition of "safely".
I only fully understand what "safely" means after reading
the .cc file.

https://chromiumcodereview.appspot.com/11411013/diff/11003/crypto/nss_util.h#...
crypto/nss_util.h:46: // if you use this.

"Make sure to get an LGTM from Security if you use this"
isn't clear. I guess "Security" means the Chrome Security
Team?

Powered by Google App Engine
This is Rietveld 408576698