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

Issue 932553002: Refactor SSLClientCertificateSelector for reuse with platformKeys API. (Closed)

Created:
5 years, 10 months ago by pneubeck (no reviews)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@cert_perms
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor SSLClientCertificateSelector for reuse with platformKeys API. platformKeys API also must open a dialog for client certificate selection. Compared to SSLClientCertificateSelector, the API's dialog - does not need synchronization of multiple open dialogs on different tabs of the same origin. - does not need slot unlocking, as it is implemented on ChromeOS only. While there fixing the tests of the selector: The test certificates were imported without private key and thus the Unlock crashed because the NSS slot was null. BUG=121007, 103534, 103529, 450167 Committed: https://crrev.com/556a7a8fa9ae4f716a418c998e4b3add079abb45 Cr-Commit-Position: refs/heads/master@{#317319}

Patch Set 1 : #

Patch Set 2 : Adding namespace 'chrome'. #

Patch Set 3 : Cleaned up includes. Fixed compilation. #

Total comments: 15

Patch Set 4 : Addressed comments, some cleanup like const-ness, CHECKs, logging, includes, ... #

Total comments: 69

Patch Set 5 : Addressed Bartosz's comments #

Patch Set 6 : Rebased. #

Patch Set 7 : Addressed Mike's comment. #

Total comments: 2

Patch Set 8 : Removed Init overwriting. #

Total comments: 14

Patch Set 9 : Fixed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+398 lines, -337 lines) Patch
A + chrome/browser/ui/views/certificate_selector.h View 1 2 3 4 5 6 7 8 2 chunks +41 lines, -42 lines 0 comments Download
A chrome/browser/ui/views/certificate_selector.cc View 1 2 3 4 5 6 7 8 1 chunk +188 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/certificate_selector_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +82 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector.h View 1 2 3 4 5 6 2 chunks +10 lines, -47 lines 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector.cc View 1 2 3 4 5 6 7 4 chunks +17 lines, -203 lines 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector_browsertest.cc View 1 2 3 4 5 6 7 14 chunks +55 lines, -45 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 39 (19 generated)
pneubeck (no reviews)
@Benjamin, please take a look.
5 years, 10 months ago (2015-02-16 10:28:17 UTC) #6
pneubeck (no reviews)
On 2015/02/16 10:28:17, pneubeck wrote: > @Benjamin, please take a look. Hah, had Benjamin Kalman ...
5 years, 10 months ago (2015-02-16 12:53:36 UTC) #10
pneubeck (no reviews)
Also adding an owner. @Scott, ptal.
5 years, 10 months ago (2015-02-17 15:41:32 UTC) #12
davidben
https://codereview.chromium.org/932553002/diff/170001/chrome/browser/ui/views/certificate_selector.cc File chrome/browser/ui/views/certificate_selector.cc (right): https://codereview.chromium.org/932553002/diff/170001/chrome/browser/ui/views/certificate_selector.cc#newcode25 chrome/browser/ui/views/certificate_selector.cc:25: namespace chrome { To confirm: is //chrome namespaced these ...
5 years, 10 months ago (2015-02-18 20:32:02 UTC) #13
pneubeck (no reviews)
ptal https://codereview.chromium.org/932553002/diff/170001/chrome/browser/ui/views/certificate_selector.cc File chrome/browser/ui/views/certificate_selector.cc (right): https://codereview.chromium.org/932553002/diff/170001/chrome/browser/ui/views/certificate_selector.cc#newcode25 chrome/browser/ui/views/certificate_selector.cc:25: namespace chrome { On 2015/02/18 20:32:01, David Benjamin ...
5 years, 10 months ago (2015-02-19 15:12:25 UTC) #16
pneubeck (no reviews)
-Scott, +Mike Mike, ptal. David already reviewed it but I also need an owner lgtm.
5 years, 10 months ago (2015-02-19 17:30:20 UTC) #18
bartfab (slow)
A couple of drive-by nits. https://codereview.chromium.org/932553002/diff/210001/chrome/browser/ui/views/certificate_selector.cc File chrome/browser/ui/views/certificate_selector.cc (right): https://codereview.chromium.org/932553002/diff/210001/chrome/browser/ui/views/certificate_selector.cc#newcode44 chrome/browser/ui/views/certificate_selector.cc:44: for (const scoped_refptr<net::X509Certificate>& cert ...
5 years, 10 months ago (2015-02-19 17:53:07 UTC) #20
pneubeck (no reviews)
https://codereview.chromium.org/932553002/diff/210001/chrome/browser/ui/views/certificate_selector.cc File chrome/browser/ui/views/certificate_selector.cc (right): https://codereview.chromium.org/932553002/diff/210001/chrome/browser/ui/views/certificate_selector.cc#newcode44 chrome/browser/ui/views/certificate_selector.cc:44: for (const scoped_refptr<net::X509Certificate>& cert : certificates) { On 2015/02/19 ...
5 years, 10 months ago (2015-02-19 19:43:52 UTC) #21
msw
https://codereview.chromium.org/932553002/diff/210001/chrome/browser/ui/views/certificate_selector.cc File chrome/browser/ui/views/certificate_selector.cc (right): https://codereview.chromium.org/932553002/diff/210001/chrome/browser/ui/views/certificate_selector.cc#newcode45 chrome/browser/ui/views/certificate_selector.cc:45: const base::string16 text = l10n_util::GetStringFUTF16( nit: inline this in ...
5 years, 10 months ago (2015-02-19 19:53:54 UTC) #22
pneubeck (no reviews)
Thanks Mike! https://codereview.chromium.org/932553002/diff/210001/chrome/browser/ui/views/certificate_selector.cc File chrome/browser/ui/views/certificate_selector.cc (right): https://codereview.chromium.org/932553002/diff/210001/chrome/browser/ui/views/certificate_selector.cc#newcode45 chrome/browser/ui/views/certificate_selector.cc:45: const base::string16 text = l10n_util::GetStringFUTF16( On 2015/02/19 ...
5 years, 10 months ago (2015-02-19 20:43:50 UTC) #24
davidben
Thanks for reworking the Accept bit. That's much clearer. I've filed crbug/460215 for the double-Accept ...
5 years, 10 months ago (2015-02-19 20:54:21 UTC) #25
msw
lgtm with minor renaming comment. https://codereview.chromium.org/932553002/diff/210001/chrome/browser/ui/views/certificate_selector_browsertest.cc File chrome/browser/ui/views/certificate_selector_browsertest.cc (right): https://codereview.chromium.org/932553002/diff/210001/chrome/browser/ui/views/certificate_selector_browsertest.cc#newcode51 chrome/browser/ui/views/certificate_selector_browsertest.cc:51: chrome::CertificateSelector* selector_ = nullptr; ...
5 years, 10 months ago (2015-02-19 21:03:31 UTC) #26
pneubeck (no reviews)
jcivelli@chromium.org: Please review changes in chrome/test/BUILD.gn
5 years, 10 months ago (2015-02-19 21:54:00 UTC) #29
Jay Civelli
LGTM for chrome/test/BUILD.gn
5 years, 10 months ago (2015-02-19 22:01:04 UTC) #30
pneubeck (no reviews)
@Bartosz, ptal at the last changes (patchset 7 to 8) https://codereview.chromium.org/932553002/diff/210001/chrome/browser/ui/views/ssl_client_certificate_selector.h File chrome/browser/ui/views/ssl_client_certificate_selector.h (right): https://codereview.chromium.org/932553002/diff/210001/chrome/browser/ui/views/ssl_client_certificate_selector.h#newcode35 ...
5 years, 10 months ago (2015-02-20 09:54:00 UTC) #32
bartfab (slow)
I had another look at the certificate_selector.* files I had nitted on before. These LGTM. ...
5 years, 10 months ago (2015-02-20 12:19:48 UTC) #33
pneubeck (no reviews)
https://codereview.chromium.org/932553002/diff/310001/chrome/browser/ui/views/certificate_selector.cc File chrome/browser/ui/views/certificate_selector.cc (right): https://codereview.chromium.org/932553002/diff/310001/chrome/browser/ui/views/certificate_selector.cc#newcode60 chrome/browser/ui/views/certificate_selector.cc:60: DCHECK_LT(static_cast<size_t>(index), items_.size()); On 2015/02/20 12:19:47, bartfab wrote: > Nit: ...
5 years, 10 months ago (2015-02-20 14:02:50 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/932553002/330001
5 years, 10 months ago (2015-02-20 14:04:08 UTC) #37
commit-bot: I haz the power
Committed patchset #9 (id:330001)
5 years, 10 months ago (2015-02-20 14:59:11 UTC) #38
commit-bot: I haz the power
5 years, 10 months ago (2015-02-20 14:59:36 UTC) #39
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/556a7a8fa9ae4f716a418c998e4b3add079abb45
Cr-Commit-Position: refs/heads/master@{#317319}

Powered by Google App Engine
This is Rietveld 408576698