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

Issue 2681733008: Improve error handling of the transport security state generator. (Closed)

Created:
3 years, 10 months ago by martijnc
Modified:
3 years, 9 months ago
Reviewers:
lgarron, Ryan Sleevi
CC:
cbentzel+watch_chromium.org, chromium-reviews, net-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve error handling of the transport security state generator. Split off from https://codereview.chromium.org/2660793002. This is the first part of a larger CL that improves the error handling of the generator. The old code would often (D)CHECK on incorrect inputs which isn't ideal. This CL replaces the CHECKs with boolean return values and outputs human readable errors when something goes wrong. Also fixes a small bug, incorrect comments, and removes unused code. BUG=595493 Review-Url: https://codereview.chromium.org/2681733008 Cr-Commit-Position: refs/heads/master@{#453901} Committed: https://chromium.googlesource.com/chromium/src/+/0a16d63e9fc212b9a4c2e3d01cc036745880f516

Patch Set 1 #

Total comments: 24

Patch Set 2 #

Patch Set 3 : Remove ErrorList #

Messages

Total messages: 26 (16 generated)
martijnc
Hi, this is the first group of changes I split of from the large CL. ...
3 years, 10 months ago (2017-02-09 21:41:08 UTC) #11
Ryan Sleevi
There's probably still opportunity to split this into smaller CLs, and to justify each CL ...
3 years, 10 months ago (2017-02-14 20:53:17 UTC) #12
martijnc
Thanks for the feedback! I've split off a couple of changes (indicated in the comments). ...
3 years, 10 months ago (2017-02-15 22:07:59 UTC) #15
Ryan Sleevi
Mostly LG, but one design question below :) https://codereview.chromium.org/2681733008/diff/60001/net/tools/transport_security_state_generator/transport_security_state_generator.cc File net/tools/transport_security_state_generator/transport_security_state_generator.cc (right): https://codereview.chromium.org/2681733008/diff/60001/net/tools/transport_security_state_generator/transport_security_state_generator.cc#newcode40 net/tools/transport_security_state_generator/transport_security_state_generator.cc:40: using ...
3 years, 10 months ago (2017-02-16 01:50:40 UTC) #16
martijnc
https://codereview.chromium.org/2681733008/diff/60001/net/tools/transport_security_state_generator/transport_security_state_generator.cc File net/tools/transport_security_state_generator/transport_security_state_generator.cc (right): https://codereview.chromium.org/2681733008/diff/60001/net/tools/transport_security_state_generator/transport_security_state_generator.cc#newcode40 net/tools/transport_security_state_generator/transport_security_state_generator.cc:40: using ErrorList = std::vector<std::string>; On 2017/02/16 at 01:50:40, Ryan ...
3 years, 10 months ago (2017-02-16 18:02:46 UTC) #17
Ryan Sleevi
On 2017/02/16 18:02:46, martijnc wrote: > I want to avoid having multiple places/files that write ...
3 years, 9 months ago (2017-02-28 04:09:07 UTC) #18
martijnc
On 2017/02/28 at 04:09:07, rsleevi wrote: > Apologies, somehow I must have marked your code ...
3 years, 9 months ago (2017-02-28 21:52:14 UTC) #20
Ryan Sleevi
lgtm
3 years, 9 months ago (2017-02-28 22:28:02 UTC) #21
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/2681733008/160001
3 years, 9 months ago (2017-03-01 10:46:03 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 11:03:59 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/0a16d63e9fc212b9a4c2e3d01cc0...

Powered by Google App Engine
This is Rietveld 408576698