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

Issue 1575543002: Minor improvements to ct_serialization.cc (Closed)

Created:
4 years, 11 months ago by Rob Percival
Modified:
4 years, 11 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, certificate-transparency-chrome_googlegroups.com, cbentzel+watch_chromium.org, Eran Messeri
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Minor improvements to ct_serialization.cc - Use uint64_t in place of size_t where we need to guarantee 64-bit integers. - Minor formatting and diagnostic improvements. - Extracted timestamp decoding into its own function, ReadTimeSinceEpoch. This will be used more in future code. BUG=506227 Committed: https://crrev.com/00a089237741d2b666aab6ee2e20a3a91d816cac Cr-Commit-Position: refs/heads/master@{#371359}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Addresses review comments #

Patch Set 3 : Fixes stdint.h include #

Total comments: 5

Patch Set 4 : Addresses review comments #

Total comments: 8

Patch Set 5 : Simplifies WriteVariableBytes function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -37 lines) Patch
M net/cert/ct_serialization.cc View 1 2 3 4 9 chunks +64 lines, -37 lines 0 comments Download

Messages

Total messages: 23 (3 generated)
Rob Percival
4 years, 11 months ago (2016-01-08 19:00:56 UTC) #2
Ryan Sleevi
https://codereview.chromium.org/1575543002/diff/1/net/cert/ct_serialization.cc File net/cert/ct_serialization.cc (right): https://codereview.chromium.org/1575543002/diff/1/net/cert/ct_serialization.cc#newcode7 net/cert/ct_serialization.cc:7: #include <cstdint> Chromium code recommends stdint.h (and, in general, ...
4 years, 11 months ago (2016-01-08 19:46:31 UTC) #3
Rob Percival
https://codereview.chromium.org/1575543002/diff/1/net/cert/ct_serialization.cc File net/cert/ct_serialization.cc (right): https://codereview.chromium.org/1575543002/diff/1/net/cert/ct_serialization.cc#newcode7 net/cert/ct_serialization.cc:7: #include <cstdint> On 2016/01/08 19:46:31, Ryan Sleevi wrote: > ...
4 years, 11 months ago (2016-01-10 03:48:56 UTC) #4
Ryan Sleevi
https://codereview.chromium.org/1575543002/diff/1/net/cert/ct_serialization.cc File net/cert/ct_serialization.cc (right): https://codereview.chromium.org/1575543002/diff/1/net/cert/ct_serialization.cc#newcode217 net/cert/ct_serialization.cc:217: // even on 32-bit builds. On 2016/01/10 03:48:56, Rob ...
4 years, 11 months ago (2016-01-12 00:10:15 UTC) #5
Rob Percival
https://chromiumcodereview-hr.appspot.com/1575543002/diff/1/net/cert/ct_serialization.cc File net/cert/ct_serialization.cc (right): https://chromiumcodereview-hr.appspot.com/1575543002/diff/1/net/cert/ct_serialization.cc#newcode217 net/cert/ct_serialization.cc:217: // even on 32-bit builds. On 2016/01/12 00:10:15, Ryan ...
4 years, 11 months ago (2016-01-13 00:55:52 UTC) #6
Ryan Sleevi
https://chromiumcodereview-hr.appspot.com/1575543002/diff/40001/net/cert/ct_serialization.cc File net/cert/ct_serialization.cc (right): https://chromiumcodereview-hr.appspot.com/1575543002/diff/40001/net/cert/ct_serialization.cc#newcode193 net/cert/ct_serialization.cc:193: } What if we: Delete both DCHECKs DCHECK(length >= ...
4 years, 11 months ago (2016-01-13 02:44:32 UTC) #7
Rob Percival
On 2016/01/13 02:44:32, Ryan Sleevi (OOO til 1-19) wrote: > https://chromiumcodereview-hr.appspot.com/1575543002/diff/40001/net/cert/ct_serialization.cc > File net/cert/ct_serialization.cc (right): ...
4 years, 11 months ago (2016-01-18 11:06:40 UTC) #8
Ryan Sleevi
On 2016/01/18 11:06:40, Rob Percival wrote: > The first part of that DCHECK, "length >= ...
4 years, 11 months ago (2016-01-19 19:26:32 UTC) #9
Rob Percival
On 2016/01/19 19:26:32, Ryan Sleevi wrote: > On 2016/01/18 11:06:40, Rob Percival wrote: > > ...
4 years, 11 months ago (2016-01-20 09:47:20 UTC) #10
Rob Percival
On 2016/01/20 09:47:20, Rob Percival wrote: > On 2016/01/19 19:26:32, Ryan Sleevi wrote: > > ...
4 years, 11 months ago (2016-01-20 09:57:05 UTC) #11
Ryan Sleevi
On 2016/01/20 09:57:05, Rob Percival wrote: > On 2016/01/20 09:47:20, Rob Percival wrote: > > ...
4 years, 11 months ago (2016-01-20 16:57:39 UTC) #12
Rob Percival
https://chromiumcodereview-hr.appspot.com/1575543002/diff/40001/net/cert/ct_serialization.cc File net/cert/ct_serialization.cc (left): https://chromiumcodereview-hr.appspot.com/1575543002/diff/40001/net/cert/ct_serialization.cc#oldcode214 net/cert/ct_serialization.cc:214: return false; It's not clear to me why WriteVariableBytes ...
4 years, 11 months ago (2016-01-20 20:20:33 UTC) #13
Ryan Sleevi
https://chromiumcodereview-hr.appspot.com/1575543002/diff/40001/net/cert/ct_serialization.cc File net/cert/ct_serialization.cc (left): https://chromiumcodereview-hr.appspot.com/1575543002/diff/40001/net/cert/ct_serialization.cc#oldcode214 net/cert/ct_serialization.cc:214: return false; On 2016/01/20 20:20:33, Rob Percival wrote: > ...
4 years, 11 months ago (2016-01-20 20:56:37 UTC) #14
Rob Percival
PTAL
4 years, 11 months ago (2016-01-21 09:52:50 UTC) #15
Ryan Sleevi
https://codereview.chromium.org/1575543002/diff/60001/net/cert/ct_serialization.cc File net/cert/ct_serialization.cc (right): https://codereview.chromium.org/1575543002/diff/60001/net/cert/ct_serialization.cc#newcode58 net/cert/ct_serialization.cc:58: // code the result for that case. https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/NH-S6KCkr2M return ...
4 years, 11 months ago (2016-01-22 23:32:16 UTC) #16
Rob Percival
https://chromiumcodereview-hr.appspot.com/1575543002/diff/60001/net/cert/ct_serialization.cc File net/cert/ct_serialization.cc (right): https://chromiumcodereview-hr.appspot.com/1575543002/diff/60001/net/cert/ct_serialization.cc#newcode58 net/cert/ct_serialization.cc:58: // code the result for that case. On 2016/01/22 ...
4 years, 11 months ago (2016-01-25 16:42:29 UTC) #17
Ryan Sleevi
LGTM. Sorry for the LONG back and forth of a 'simple' cleanup ;)
4 years, 11 months ago (2016-01-25 21:25:58 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1575543002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1575543002/80001
4 years, 11 months ago (2016-01-25 22:14:48 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 11 months ago (2016-01-26 00:09:50 UTC) #21
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 00:10:47 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/00a089237741d2b666aab6ee2e20a3a91d816cac
Cr-Commit-Position: refs/heads/master@{#371359}

Powered by Google App Engine
This is Rietveld 408576698