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

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

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

Description

Cert - protobufs to serialize and deserialize CertVerifierCache.

Patch Set 1 : #

Total comments: 14

Patch Set 2 : #

Patch Set 3 : Unnest CertVerifierCacheIterator class to avoid forward declaring nested structs #

Patch Set 4 : delete scoped_ptr and use unique_ptr #

Total comments: 20

Patch Set 5 : #

Total comments: 26
Unified diffs Side-by-side diffs Delta from patch set Stats (+1018 lines, -81 lines) Patch
M net/BUILD.gn View 1 2 3 4 2 chunks +15 lines, -0 lines 0 comments Download
A net/cert/cert_verifier_cache_persister.h View 1 1 chunk +54 lines, -0 lines 0 comments Download
A net/cert/cert_verifier_cache_persister.cc View 1 2 3 4 1 chunk +306 lines, -0 lines 2 comments Download
A net/cert/cert_verifier_cache_persister_unittest.cc View 1 2 3 4 1 chunk +117 lines, -0 lines 10 comments Download
M net/cert/multi_threaded_cert_verifier.h View 1 2 3 4 5 chunks +103 lines, -47 lines 0 comments Download
M net/cert/multi_threaded_cert_verifier.cc View 1 2 3 4 3 chunks +98 lines, -34 lines 4 comments Download
M net/cert/multi_threaded_cert_verifier_unittest.cc View 1 2 3 4 2 chunks +210 lines, -0 lines 10 comments Download
A net/cert/proto/cert_verification.proto View 1 2 3 4 1 chunk +73 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 chunks +25 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M net/net_common.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/net_nacl.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 36 (17 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1892033002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1892033002/1
4 years, 8 months ago (2016-04-15 03:41:55 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/201557) mac_chromium_compile_dbg_ng on ...
4 years, 8 months ago (2016-04-15 03:43:47 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1892033002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1892033002/20001
4 years, 8 months ago (2016-04-15 22:41:35 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/202090)
4 years, 8 months ago (2016-04-15 22:48:30 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1892033002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1892033002/40001
4 years, 8 months ago (2016-04-15 22:57:28 UTC) #11
Ryan Sleevi
https://codereview.chromium.org/1892033002/diff/40001/net/cert/cert_verifier_cache_persister.h File net/cert/cert_verifier_cache_persister.h (right): https://codereview.chromium.org/1892033002/diff/40001/net/cert/cert_verifier_cache_persister.h#newcode45 net/cert/cert_verifier_cache_persister.h:45: // Update |proto_request_param| with data from |verifier_->cache_|'s Doesn't seem ...
4 years, 8 months ago (2016-04-16 00:36:15 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-16 03:12:53 UTC) #16
ramant (doing other things)
Hi Ryan, This CL is a first cut. Implemented Iterator similar to TransportStatePersister. You had ...
4 years, 8 months ago (2016-04-21 16:41:54 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1892033002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1892033002/100001
4 years, 7 months ago (2016-04-28 00:51:32 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/152124)
4 years, 7 months ago (2016-04-28 01:02:04 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1892033002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1892033002/120001
4 years, 7 months ago (2016-04-28 01:05:55 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-28 02:09:49 UTC) #26
Ryan Sleevi
https://codereview.chromium.org/1892033002/diff/120001/net/cert/multi_threaded_cert_verifier.h File net/cert/multi_threaded_cert_verifier.h (right): https://codereview.chromium.org/1892033002/diff/120001/net/cert/multi_threaded_cert_verifier.h#newcode74 net/cert/multi_threaded_cert_verifier.h:74: // |cache_| is updated. This is not a helpful ...
4 years, 7 months ago (2016-04-29 23:33:21 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1892033002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1892033002/160001
4 years, 7 months ago (2016-04-30 22:55:03 UTC) #30
ramant (doing other things)
Thanks Ryan for the comments. PTAL. https://codereview.chromium.org/1892033002/diff/120001/net/cert/multi_threaded_cert_verifier.h File net/cert/multi_threaded_cert_verifier.h (right): https://codereview.chromium.org/1892033002/diff/120001/net/cert/multi_threaded_cert_verifier.h#newcode74 net/cert/multi_threaded_cert_verifier.h:74: // |cache_| is ...
4 years, 7 months ago (2016-04-30 22:58:12 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-30 23:55:55 UTC) #33
ramant (doing other things)
Hi rsleevi, If you have sometime, could you please take another look? thanks raman
4 years, 7 months ago (2016-05-10 01:31:25 UTC) #34
Ryan Sleevi
https://codereview.chromium.org/1892033002/diff/160001/net/cert/cert_verifier_cache_persister.cc File net/cert/cert_verifier_cache_persister.cc (right): https://codereview.chromium.org/1892033002/diff/160001/net/cert/cert_verifier_cache_persister.cc#newcode234 net/cert/cert_verifier_cache_persister.cc:234: DVLOG(1) << "Invalid CertVerificationCacheEntry"; All of these DVLOGS seem ...
4 years, 7 months ago (2016-05-13 20:18:13 UTC) #35
ramant (doing other things)
4 years, 6 months ago (2016-05-27 19:57:14 UTC) #36
Made the relevant changes to protobuf code in
https://codereview.chromium.org/2021433004/

rsleevi made the other changes in CLs:
  1994353002, 2000503002, 1991653002 and 1999733002.

We thought it is better to upload as a new CL.

Closing this issue.

https://codereview.chromium.org/1892033002/diff/160001/net/cert/cert_verifier...
File net/cert/cert_verifier_cache_persister.cc (right):

https://codereview.chromium.org/1892033002/diff/160001/net/cert/cert_verifier...
net/cert/cert_verifier_cache_persister.cc:234: DVLOG(1) << "Invalid
CertVerificationCacheEntry";
On 2016/05/13 20:18:12, Ryan Sleevi wrote:
> All of these DVLOGS seem unnecessarily verbose and useless.
> 
> I'm very anti-DVLOG, but if there's a use case you're trying to address,
perhaps
> you could explain? DVLOGs are only for developer builds - but also show up
> extensively in our test bots - so why do these add particular value? Are these
> signs of programmer error? If so, doesn't DCHECK make more sense? Or are they
> benign, ignorable errors? If so, why DVLOG at all?

Deleted the DVLOGs. They are all ignorable errors.
Done.

https://codereview.chromium.org/1892033002/diff/160001/net/cert/cert_verifier...
File net/cert/cert_verifier_cache_persister_unittest.cc (right):

https://codereview.chromium.org/1892033002/diff/160001/net/cert/cert_verifier...
net/cert/cert_verifier_cache_persister_unittest.cc:84: callback.callback(),
&request, BoundNetLog());
On 2016/05/13 20:18:12, Ryan Sleevi wrote:
> What are you testing here? That MTCV caches?
> 
> Its API contract doesn't guarantee it caches failures.

+1. It is unnecessary.

Done.

https://codereview.chromium.org/1892033002/diff/160001/net/cert/cert_verifier...
net/cert/cert_verifier_cache_persister_unittest.cc:95:
EXPECT_FALSE(persister.LoadCache(std::string()));
On 2016/05/13 20:18:12, Ryan Sleevi wrote:
> Separate test

Done.

https://codereview.chromium.org/1892033002/diff/160001/net/cert/cert_verifier...
net/cert/cert_verifier_cache_persister_unittest.cc:98:
EXPECT_FALSE(persister.LoadCache(std::string("junk")));
On 2016/05/13 20:18:12, Ryan Sleevi wrote:
> Separate test

Done.

https://codereview.chromium.org/1892033002/diff/160001/net/cert/cert_verifier...
net/cert/cert_verifier_cache_persister_unittest.cc:101:
EXPECT_FALSE(persister.LoadCache(data));
On 2016/05/13 20:18:12, Ryan Sleevi wrote:
> Separate test

Done.

https://codereview.chromium.org/1892033002/diff/160001/net/cert/cert_verifier...
net/cert/cert_verifier_cache_persister_unittest.cc:103: // Create a new Verifier
and restoring the data into it, should succeed.
On 2016/05/13 20:18:12, Ryan Sleevi wrote:
> Separate test

Done.

Powered by Google App Engine
This is Rietveld 408576698