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

Issue 2021433004: Cert - protobufs to serialize and deserialize CertVerifierCache. (Closed)

Created:
4 years, 6 months ago by ramant (doing other things)
Modified:
4 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org, eroman, jbudorick
Base URL:
https://chromium.googlesource.com/chromium/src.git@Add_support_for_walking_1999733002
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cert - protobufs to serialize and deserialize CertVerifierCache. BUG=607354 R=rsleevi@chromium.org, mef@chromium.org, Committed: https://crrev.com/18f5a46af8dcde2ae88873d03d2908949678af75 Cr-Commit-Position: refs/heads/master@{#402020}

Patch Set 1 #

Patch Set 2 : Added histogram for cache size #

Total comments: 20

Patch Set 3 : #

Total comments: 12

Patch Set 4 : Fix comments and more tests #

Total comments: 53

Patch Set 5 : Fix comments for Patch Set 4 #

Patch Set 6 : Move code to cronet #

Total comments: 5

Patch Set 7 : removed changes to ios files #

Patch Set 8 : delete //net/data/ssl/... #

Total comments: 38

Patch Set 9 : Fix comments #

Patch Set 10 : Rebase TOT #

Total comments: 20

Patch Set 11 : Fix comments #

Total comments: 64

Patch Set 12 : Minor fix to comment #

Total comments: 4

Patch Set 13 : Fix comments #

Total comments: 6

Patch Set 14 : Fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1233 lines, -0 lines) Patch
M components/cronet.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +21 lines, -0 lines 0 comments Download
M components/cronet/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +21 lines, -0 lines 0 comments Download
A components/cronet/android/cert/cert_verifier_cache_serializer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +32 lines, -0 lines 0 comments Download
A components/cronet/android/cert/cert_verifier_cache_serializer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +385 lines, -0 lines 0 comments Download
A components/cronet/android/cert/cert_verifier_cache_serializer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +677 lines, -0 lines 0 comments Download
A components/cronet/android/cert/proto/cert_verification.proto View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +77 lines, -0 lines 0 comments Download
M components/cronet/cronet_static.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download
M net/cert/cert_verify_result.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M net/cert/cert_verify_result.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +15 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 90 (43 generated)
ramant (doing other things)
Hi Ryan H and Ryan S, Extracted protobuf code of the following CL into a ...
4 years, 6 months ago (2016-05-27 19:55:07 UTC) #3
Ryan Sleevi
I think my biggest concern here right now is with the documentation; I haven't looked ...
4 years, 6 months ago (2016-05-30 18:37:20 UTC) #4
ramant (doing other things)
https://codereview.chromium.org/2021433004/diff/20001/net/extras/cert/cert_verifier_cache_persister.cc File net/extras/cert/cert_verifier_cache_persister.cc (right): https://codereview.chromium.org/2021433004/diff/20001/net/extras/cert/cert_verifier_cache_persister.cc#newcode34 net/extras/cert/cert_verifier_cache_persister.cc:34: std::find(serialized_certs->begin(), serialized_certs->end(), encoded); On 2016/05/30 18:37:18, Ryan Sleevi (OOO ...
4 years, 6 months ago (2016-06-01 16:29:22 UTC) #5
Ryan Sleevi
https://codereview.chromium.org/2021433004/diff/60001/net/extras/cert/cert_verifier_cache_persister.cc File net/extras/cert/cert_verifier_cache_persister.cc (right): https://codereview.chromium.org/2021433004/diff/60001/net/extras/cert/cert_verifier_cache_persister.cc#newcode59 net/extras/cert/cert_verifier_cache_persister.cc:59: DCHECK(false); DCHECK(false) is an anti-pattern NOTREACHED() is the idiomatic ...
4 years, 6 months ago (2016-06-08 21:38:10 UTC) #7
ramant (doing other things)
Many many thanks Ryan for the comments. Made all the changes. PTAL. Won't submit until ...
4 years, 6 months ago (2016-06-09 00:51:40 UTC) #9
Alexei Svitkine (slow)
histograms lgtm - didn't look at much else https://codereview.chromium.org/2021433004/diff/100001/net/extras/cert/cert_verifier_cache_persister.h File net/extras/cert/cert_verifier_cache_persister.h (right): https://codereview.chromium.org/2021433004/diff/100001/net/extras/cert/cert_verifier_cache_persister.h#newcode1 net/extras/cert/cert_verifier_cache_persister.h:1: // ...
4 years, 6 months ago (2016-06-09 21:46:31 UTC) #11
Ryan Sleevi
https://codereview.chromium.org/2021433004/diff/100001/net/extras/cert/cert_verifier_cache_persister.cc File net/extras/cert/cert_verifier_cache_persister.cc (right): https://codereview.chromium.org/2021433004/diff/100001/net/extras/cert/cert_verifier_cache_persister.cc#newcode30 net/extras/cert/cert_verifier_cache_persister.cc:30: EncodedCertMap* encoded_certs, DESIGN: This seems like a memory-intensive serialization ...
4 years, 6 months ago (2016-06-09 22:38:42 UTC) #12
ramant (doing other things)
PTAL. https://codereview.chromium.org/2021433004/diff/100001/net/extras/cert/cert_verifier_cache_persister.cc File net/extras/cert/cert_verifier_cache_persister.cc (right): https://codereview.chromium.org/2021433004/diff/100001/net/extras/cert/cert_verifier_cache_persister.cc#newcode30 net/extras/cert/cert_verifier_cache_persister.cc:30: EncodedCertMap* encoded_certs, On 2016/06/09 22:38:41, Ryan Sleevi wrote: ...
4 years, 6 months ago (2016-06-10 06:13:52 UTC) #15
Ryan Sleevi
https://codereview.chromium.org/2021433004/diff/100001/net/extras/cert/cert_verifier_cache_persister.h File net/extras/cert/cert_verifier_cache_persister.h (right): https://codereview.chromium.org/2021433004/diff/100001/net/extras/cert/cert_verifier_cache_persister.h#newcode26 net/extras/cert/cert_verifier_cache_persister.h:26: NET_EXPORT_PRIVATE CertVerificationCache On 2016/06/10 06:13:52, ramant wrote: > Will ...
4 years, 6 months ago (2016-06-10 07:57:57 UTC) #18
Ryan Sleevi
https://codereview.chromium.org/2021433004/diff/180001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2021433004/diff/180001/components/cronet/android/BUILD.gn#newcode705 components/cronet/android/BUILD.gn:705: "//net/data/ssl/certificates/root_ca_cert.pem", I want to reiterate: This should NOT be ...
4 years, 6 months ago (2016-06-14 21:52:32 UTC) #22
ramant (doing other things)
https://codereview.chromium.org/2021433004/diff/180001/components/cronet.gypi File components/cronet.gypi (right): https://codereview.chromium.org/2021433004/diff/180001/components/cronet.gypi#newcode774 components/cronet.gypi:774: # Protobuf compiler / generator for certificate verifcation protocol ...
4 years, 6 months ago (2016-06-14 22:38:19 UTC) #23
jbudorick
https://codereview.chromium.org/2021433004/diff/180001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2021433004/diff/180001/components/cronet/android/BUILD.gn#newcode705 components/cronet/android/BUILD.gn:705: "//net/data/ssl/certificates/root_ca_cert.pem", On 2016/06/14 22:38:19, ramant wrote: > On 2016/06/14 ...
4 years, 6 months ago (2016-06-15 13:53:19 UTC) #25
ramant (doing other things)
Hi Ryan Sleevi, Will wait for your changes and jbudorick@ changes to land. PTAL. https://codereview.chromium.org/2021433004/diff/180001/components/cronet/android/BUILD.gn ...
4 years, 6 months ago (2016-06-15 21:31:49 UTC) #27
Ryan Sleevi
https://codereview.chromium.org/2021433004/diff/220001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2021433004/diff/220001/components/cronet/android/BUILD.gn#newcode109 components/cronet/android/BUILD.gn:109: proto_library("cronet_cert_proto") { Can you restrict the visibility to the ...
4 years, 6 months ago (2016-06-15 23:31:33 UTC) #28
ramant (doing other things)
Hi Ryan, This CL is still waiting for jbudorick's CL to land. Made all the ...
4 years, 6 months ago (2016-06-17 02:45:15 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021433004/300001
4 years, 6 months ago (2016-06-20 17:26:50 UTC) #33
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-20 18:19:13 UTC) #35
ramant (doing other things)
On 2016/06/20 18:19:13, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 6 months ago (2016-06-20 18:31:56 UTC) #36
Ryan Sleevi
https://codereview.chromium.org/2021433004/diff/300001/components/cronet/cert/cert_verifier_cache_persister.cc File components/cronet/cert/cert_verifier_cache_persister.cc (right): https://codereview.chromium.org/2021433004/diff/300001/components/cronet/cert/cert_verifier_cache_persister.cc#newcode11 components/cronet/cert/cert_verifier_cache_persister.cc:11: #include "base/metrics/histogram_macros.h" Unused? https://codereview.chromium.org/2021433004/diff/300001/components/cronet/cert/cert_verifier_cache_persister.cc#newcode17 components/cronet/cert/cert_verifier_cache_persister.cc:17: #include "net/cert/cert_type.h" Why are ...
4 years, 6 months ago (2016-06-21 01:22:10 UTC) #37
ramant (doing other things)
Hi Ryan, Thanks very for the comments. PTAL. Will delete the test if it is ...
4 years, 6 months ago (2016-06-21 16:52:02 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021433004/320001
4 years, 6 months ago (2016-06-21 16:52:36 UTC) #40
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-21 18:03:16 UTC) #42
Ryan Sleevi
https://codereview.chromium.org/2021433004/diff/320001/components/cronet/cert/cert_verifier_cache_persister.cc File components/cronet/cert/cert_verifier_cache_persister.cc (right): https://codereview.chromium.org/2021433004/diff/320001/components/cronet/cert/cert_verifier_cache_persister.cc#newcode36 components/cronet/cert/cert_verifier_cache_persister.cc:36: NOTREACHED(); After re-reading this, all of these NOTREACHED()'s should ...
4 years, 6 months ago (2016-06-21 20:31:04 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021433004/380001
4 years, 6 months ago (2016-06-22 03:49:16 UTC) #47
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/24557) ios-simulator on ...
4 years, 6 months ago (2016-06-22 03:51:10 UTC) #49
ramant (doing other things)
Hi Ryan, Made all the changes. Updated the comments. Added operator== method for cert_verify_result and ...
4 years, 6 months ago (2016-06-22 03:51:37 UTC) #50
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021433004/390001
4 years, 6 months ago (2016-06-22 04:07:29 UTC) #53
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/85026)
4 years, 6 months ago (2016-06-22 04:13:47 UTC) #55
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021433004/410001
4 years, 6 months ago (2016-06-22 04:34:16 UTC) #58
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-22 05:32:08 UTC) #60
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021433004/430001
4 years, 6 months ago (2016-06-22 19:16:10 UTC) #62
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021433004/450001
4 years, 6 months ago (2016-06-22 19:27:27 UTC) #65
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-22 21:21:19 UTC) #68
Ryan Sleevi
LGTM % nit https://codereview.chromium.org/2021433004/diff/450001/components/cronet/cert/cert_verifier_cache_serializer.cc File components/cronet/cert/cert_verifier_cache_serializer.cc (right): https://codereview.chromium.org/2021433004/diff/450001/components/cronet/cert/cert_verifier_cache_serializer.cc#newcode24 components/cronet/cert/cert_verifier_cache_serializer.cc:24: typedef std::map<std::string, size_t> SerializedCertMap; Maybe some ...
4 years, 6 months ago (2016-06-22 22:32:20 UTC) #69
ramant (doing other things)
Thanks very much Ryan S. for the code review. Hi Misha, Can you look at ...
4 years, 6 months ago (2016-06-22 23:25:22 UTC) #70
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021433004/470001
4 years, 6 months ago (2016-06-22 23:26:13 UTC) #72
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-23 00:37:47 UTC) #74
Ryan Hamilton
lgtm (I trust sleevi)
4 years, 6 months ago (2016-06-23 18:25:56 UTC) #75
mef
lgtm with a couple of nits. This could be useful for iOS as well as ...
4 years, 6 months ago (2016-06-24 19:16:20 UTC) #76
Ryan Sleevi
On 2016/06/24 19:16:20, mef wrote: > lgtm with a couple of nits. > > This ...
4 years, 6 months ago (2016-06-24 19:19:20 UTC) #77
mef
On 2016/06/24 19:19:20, Ryan Sleevi wrote: > On 2016/06/24 19:16:20, mef wrote: > > lgtm ...
4 years, 6 months ago (2016-06-24 19:22:16 UTC) #78
Ryan Sleevi
On 2016/06/24 19:22:16, mef wrote: > Ah, thanks for clarification! In this case I think ...
4 years, 6 months ago (2016-06-24 19:25:24 UTC) #79
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2021433004/490001
4 years, 6 months ago (2016-06-24 23:02:45 UTC) #81
ramant (doing other things)
Moved cronet/cert to cronet/android/cert. https://codereview.chromium.org/2021433004/diff/470001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/2021433004/diff/470001/components/cronet/android/BUILD.gn#newcode132 components/cronet/android/BUILD.gn:132: ":cronet_cert_proto", On 2016/06/24 19:16:20, mef ...
4 years, 6 months ago (2016-06-24 23:28:01 UTC) #82
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2021433004/490001
4 years, 6 months ago (2016-06-24 23:29:20 UTC) #86
commit-bot: I haz the power
Committed patchset #14 (id:490001)
4 years, 6 months ago (2016-06-25 00:03:45 UTC) #88
commit-bot: I haz the power
4 years, 6 months ago (2016-06-25 00:04:53 UTC) #90
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/18f5a46af8dcde2ae88873d03d2908949678af75
Cr-Commit-Position: refs/heads/master@{#402020}

Powered by Google App Engine
This is Rietveld 408576698