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

Issue 61643007: Update keygen to use correct NSS slot on ChromeOS multiprofile. (Closed)

Created:
7 years, 1 month ago by mattm
Modified:
7 years ago
Reviewers:
jam, sky, Ryan Sleevi
CC:
chromium-reviews, dbeam+watch-options_chromium.org, joi+watch-content_chromium.org, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Update keygen to use correct NSS slot on ChromeOS multiprofile. BUG=302126 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240868

Patch Set 1 : . #

Patch Set 2 : sync to r233709 #

Patch Set 3 : sync to r235279 #

Total comments: 8

Patch Set 4 : rebase to 236603 #

Patch Set 5 : review changes #

Total comments: 2

Patch Set 6 : rebase to r237487 #

Patch Set 7 : refactor delegate initialization, merge changes from 53763003 and 83793006 #

Patch Set 8 : further refactoring #

Patch Set 9 : rebase to 238776 #

Total comments: 27

Patch Set 10 : changes for comemnt #9 #

Patch Set 11 : rebase to 239274 #

Total comments: 7

Patch Set 12 : rebase to 239609, including changes from https://codereview.chromium.org/108233005 #

Patch Set 13 : sky review changes #

Total comments: 12

Patch Set 14 : rebase to 240195 #

Patch Set 15 : sky review changes 2 #

Patch Set 16 : unit_test compile fix #

Total comments: 8

Patch Set 17 : remove unused stuff #

Patch Set 18 : jam review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+386 lines, -333 lines) Patch
M chrome/browser/certificate_manager_model.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +34 lines, -2 lines 0 comments Download
A chrome/browser/ui/crypto_module_delegate_nss.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +80 lines, -0 lines 0 comments Download
A chrome/browser/ui/crypto_module_delegate_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +104 lines, -0 lines 0 comments Download
M chrome/browser/ui/crypto_module_password_dialog.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +1 line, -37 lines 0 comments Download
D chrome/browser/ui/crypto_module_password_dialog.cc View 1 2 1 chunk +0 lines, -102 lines 0 comments Download
A + chrome/browser/ui/crypto_module_password_dialog_nss.h View 1 2 3 4 5 6 7 8 9 1 chunk +27 lines, -12 lines 0 comments Download
M chrome/browser/ui/crypto_module_password_dialog_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +5 lines, -5 lines 0 comments Download
D chrome/browser/ui/crypto_module_password_dialog_openssl.cc View 1 2 3 1 chunk +0 lines, -29 lines 0 comments Download
M chrome/browser/ui/gtk/crypto_module_password_dialog_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/gtk/ssl_client_certificate_selector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/crypto_module_password_dialog_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/crypto_module_password_dialog_view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/certificate_manager_handler.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/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +7 lines, -14 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +17 lines, -16 lines 0 comments Download
M content/browser/resource_context_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +10 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +0 lines, -11 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -7 lines 0 comments Download
M content/public/browser/resource_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +12 lines, -0 lines 0 comments Download
M crypto/crypto.gyp View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
D crypto/crypto_module_blocking_password_delegate.h View 1 chunk +0 lines, -33 lines 0 comments Download
A + crypto/nss_crypto_module_delegate.h View 1 2 3 4 5 6 1 chunk +30 lines, -10 lines 0 comments Download
M crypto/nss_util.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 net/base/keygen_handler.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -10 lines 0 comments Download
M net/base/keygen_handler.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M net/base/keygen_handler_nss.cc View 1 2 3 4 5 6 3 chunks +14 lines, -8 lines 0 comments Download
M net/ssl/client_cert_store_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (0 generated)
mattm
joi: content and chrome_content_browser_client rsleevi: resst (depends on https://codereview.chromium.org/53763003/) This is a little bigger than ...
7 years, 1 month ago (2013-11-07 04:10:26 UTC) #1
Ryan Sleevi
https://codereview.chromium.org/61643007/diff/510001/chrome/browser/ui/crypto_module_delegate_nss.cc File chrome/browser/ui/crypto_module_delegate_nss.cc (right): https://codereview.chromium.org/61643007/diff/510001/chrome/browser/ui/crypto_module_delegate_nss.cc#newcode34 chrome/browser/ui/crypto_module_delegate_nss.cc:34: password_.replace(0, password_.size(), password_.size(), 0); This seems... highly unnecessary. We ...
7 years, 1 month ago (2013-11-22 00:03:29 UTC) #2
mattm
https://codereview.chromium.org/61643007/diff/510001/chrome/browser/ui/crypto_module_delegate_nss.cc File chrome/browser/ui/crypto_module_delegate_nss.cc (right): https://codereview.chromium.org/61643007/diff/510001/chrome/browser/ui/crypto_module_delegate_nss.cc#newcode34 chrome/browser/ui/crypto_module_delegate_nss.cc:34: password_.replace(0, password_.size(), password_.size(), 0); On 2013/11/22 00:03:30, Ryan Sleevi ...
7 years, 1 month ago (2013-11-22 00:30:31 UTC) #3
Ryan Sleevi
Still a bit uncomfortable with the separation, especially the imposition by the higher-layer implementation of ...
7 years ago (2013-11-26 20:13:17 UTC) #4
mattm
Refactored the whole KeygenHandler and crypto module delegate creation and initialization process. Now the RenderMessageFilter ...
7 years ago (2013-12-03 00:40:53 UTC) #5
Ryan Sleevi
https://codereview.chromium.org/61643007/diff/1190001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/61643007/diff/1190001/chrome/browser/profiles/profile_io_data.cc#newcode865 chrome/browser/profiles/profile_io_data.cc:865: DCHECK(!rv); I still find the async setup here a ...
7 years ago (2013-12-05 00:23:19 UTC) #6
mattm
https://codereview.chromium.org/61643007/diff/1190001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/61643007/diff/1190001/chrome/browser/profiles/profile_io_data.cc#newcode865 chrome/browser/profiles/profile_io_data.cc:865: DCHECK(!rv); On 2013/12/05 00:23:19, Ryan Sleevi wrote: > I ...
7 years ago (2013-12-05 00:42:43 UTC) #7
mattm
https://codereview.chromium.org/61643007/diff/1190001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/61643007/diff/1190001/chrome/browser/profiles/profile_io_data.cc#newcode865 chrome/browser/profiles/profile_io_data.cc:865: DCHECK(!rv); On 2013/12/05 00:42:44, mattm wrote: > On 2013/12/05 ...
7 years ago (2013-12-05 00:46:48 UTC) #8
Ryan Sleevi
https://codereview.chromium.org/61643007/diff/1190001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/61643007/diff/1190001/chrome/browser/profiles/profile_io_data.cc#newcode865 chrome/browser/profiles/profile_io_data.cc:865: DCHECK(!rv); On 2013/12/05 00:46:48, mattm wrote: > On 2013/12/05 ...
7 years ago (2013-12-05 01:05:53 UTC) #9
mattm
https://codereview.chromium.org/61643007/diff/1190001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/61643007/diff/1190001/chrome/browser/profiles/profile_io_data.cc#newcode865 chrome/browser/profiles/profile_io_data.cc:865: DCHECK(!rv); On 2013/12/05 01:05:54, Ryan Sleevi wrote: > On ...
7 years ago (2013-12-05 04:41:25 UTC) #10
mattm
ping
7 years ago (2013-12-10 04:44:36 UTC) #11
Ryan Sleevi
I reviewed Patchset 9, since Patchset 10 was a rebase. LGTM. Thanks for simplifying (admittedly, ...
7 years ago (2013-12-10 22:02:36 UTC) #12
mattm
adding OWNERS jam: content/ sky: chrome/
7 years ago (2013-12-10 22:46:08 UTC) #13
sky
I know next to nothing about NSS. Exactly what files do you need me to ...
7 years ago (2013-12-11 00:12:31 UTC) #14
mattm
On 2013/12/11 00:12:31, sky wrote: > I know next to nothing about NSS. Exactly what ...
7 years ago (2013-12-11 00:18:11 UTC) #15
sky
https://codereview.chromium.org/61643007/diff/1220001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/61643007/diff/1220001/chrome/browser/profiles/profile_io_data.cc#newcode858 chrome/browser/profiles/profile_io_data.cc:858: scoped_ptr<net::KeygenHandler>* keygen_handler = Can't you use a scoped_ptr rather ...
7 years ago (2013-12-11 00:25:59 UTC) #16
sky
https://codereview.chromium.org/61643007/diff/1220001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/61643007/diff/1220001/chrome/browser/profiles/profile_io_data.cc#newcode858 chrome/browser/profiles/profile_io_data.cc:858: scoped_ptr<net::KeygenHandler>* keygen_handler = Can't you use a scoped_ptr rather ...
7 years ago (2013-12-11 00:26:00 UTC) #17
mattm
https://codereview.chromium.org/61643007/diff/1220001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/61643007/diff/1220001/chrome/browser/profiles/profile_io_data.cc#newcode858 chrome/browser/profiles/profile_io_data.cc:858: scoped_ptr<net::KeygenHandler>* keygen_handler = On 2013/12/11 00:26:00, sky wrote: > ...
7 years ago (2013-12-11 01:10:45 UTC) #18
sky
https://codereview.chromium.org/61643007/diff/1220001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/61643007/diff/1220001/chrome/browser/profiles/profile_io_data.cc#newcode858 chrome/browser/profiles/profile_io_data.cc:858: scoped_ptr<net::KeygenHandler>* keygen_handler = On 2013/12/11 01:10:46, mattm wrote: > ...
7 years ago (2013-12-11 14:20:41 UTC) #19
Ryan Sleevi
On Dec 11, 2013 6:20 AM, <sky@chromium.org> wrote: > > > https://codereview.chromium.org/61643007/diff/1220001/chrome/browser/profiles/profile_io_data.cc > File chrome/browser/profiles/profile_io_data.cc ...
7 years ago (2013-12-11 17:06:48 UTC) #20
mattm
https://codereview.chromium.org/61643007/diff/1280001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/61643007/diff/1280001/chrome/browser/profiles/profile_io_data.cc#newcode357 chrome/browser/profiles/profile_io_data.cc:357: }; On 2013/12/11 14:20:42, sky wrote: > nit: no ...
7 years ago (2013-12-11 23:12:08 UTC) #21
sky
https://codereview.chromium.org/61643007/diff/1280001/chrome/browser/ui/crypto_module_delegate_nss.cc File chrome/browser/ui/crypto_module_delegate_nss.cc (right): https://codereview.chromium.org/61643007/diff/1280001/chrome/browser/ui/crypto_module_delegate_nss.cc#newcode50 chrome/browser/ui/crypto_module_delegate_nss.cc:50: if (BrowserThread::PostTask( On 2013/12/11 23:12:09, mattm wrote: > On ...
7 years ago (2013-12-12 00:25:12 UTC) #22
mattm
https://codereview.chromium.org/61643007/diff/1280001/chrome/browser/ui/crypto_module_delegate_nss.cc File chrome/browser/ui/crypto_module_delegate_nss.cc (right): https://codereview.chromium.org/61643007/diff/1280001/chrome/browser/ui/crypto_module_delegate_nss.cc#newcode50 chrome/browser/ui/crypto_module_delegate_nss.cc:50: if (BrowserThread::PostTask( On 2013/12/12 00:25:13, sky wrote: > On ...
7 years ago (2013-12-12 00:28:57 UTC) #23
sky
Looks like the old code was blocking like this too. Ok, LGTM
7 years ago (2013-12-12 00:38:48 UTC) #24
jam
lgtm with comment https://codereview.chromium.org/61643007/diff/1360001/content/public/browser/content_browser_client.cc File content/public/browser/content_browser_client.cc (right): https://codereview.chromium.org/61643007/diff/1360001/content/public/browser/content_browser_client.cc#newcode11 content/public/browser/content_browser_client.cc:11: #if defined(USE_NSS) ditto https://codereview.chromium.org/61643007/diff/1360001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h ...
7 years ago (2013-12-12 06:42:49 UTC) #25
mattm
https://codereview.chromium.org/61643007/diff/1360001/content/public/browser/content_browser_client.cc File content/public/browser/content_browser_client.cc (right): https://codereview.chromium.org/61643007/diff/1360001/content/public/browser/content_browser_client.cc#newcode11 content/public/browser/content_browser_client.cc:11: #if defined(USE_NSS) On 2013/12/12 06:42:50, jam wrote: > ditto ...
7 years ago (2013-12-12 21:49:17 UTC) #26
jam
https://codereview.chromium.org/61643007/diff/1360001/content/public/browser/resource_context.h File content/public/browser/resource_context.h (right): https://codereview.chromium.org/61643007/diff/1360001/content/public/browser/resource_context.h#newcode57 content/public/browser/resource_context.h:57: virtual scoped_ptr<net::KeygenHandler> CreateKeygenHandler( On 2013/12/12 21:49:18, mattm wrote: > ...
7 years ago (2013-12-13 03:16:38 UTC) #27
Ryan Sleevi
On 2013/12/13 03:16:38, jam wrote: > https://codereview.chromium.org/61643007/diff/1360001/content/public/browser/resource_context.h > File content/public/browser/resource_context.h (right): > > https://codereview.chromium.org/61643007/diff/1360001/content/public/browser/resource_context.h#newcode57 > ...
7 years ago (2013-12-13 18:48:34 UTC) #28
jam
On 2013/12/13 18:48:34, Ryan Sleevi wrote: > On 2013/12/13 03:16:38, jam wrote: > > > ...
7 years ago (2013-12-13 20:54:40 UTC) #29
mattm
https://codereview.chromium.org/61643007/diff/1360001/content/public/browser/resource_context.h File content/public/browser/resource_context.h (right): https://codereview.chromium.org/61643007/diff/1360001/content/public/browser/resource_context.h#newcode57 content/public/browser/resource_context.h:57: virtual scoped_ptr<net::KeygenHandler> CreateKeygenHandler( On 2013/12/12 06:42:50, jam wrote: > ...
7 years ago (2013-12-14 01:58:28 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/61643007/1400001
7 years ago (2013-12-14 02:02:33 UTC) #31
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=203989
7 years ago (2013-12-14 05:29:13 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/61643007/1400001
7 years ago (2013-12-14 08:34:23 UTC) #33
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204130
7 years ago (2013-12-14 10:20:46 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/61643007/1400001
7 years ago (2013-12-14 23:35:52 UTC) #35
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204292
7 years ago (2013-12-15 00:44:14 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mattm@chromium.org/61643007/1400001
7 years ago (2013-12-15 02:03:26 UTC) #37
commit-bot: I haz the power
7 years ago (2013-12-16 13:05:34 UTC) #38
Message was sent while issue was closed.
Change committed as 240868

Powered by Google App Engine
This is Rietveld 408576698