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

Issue 2017123002: Adds a base32 component. (Closed)

Created:
4 years, 6 months ago by Rob Percival
Modified:
4 years, 5 months ago
Reviewers:
gab, sdefresne
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Modelled on base/base64url.h. Modifies chrome/installer/util/shell_util to use this component. It will soon be used by components/certificate_transparency as well. Discussion: https://groups.google.com/a/chromium.org/forum/?pli=1#!topic/chromium-dev/pieHLJZZE7k BUG=612439 Committed: https://crrev.com/633e8bc192437bdad37c49aa3d4024fe2d641c94 Cr-Commit-Position: refs/heads/master@{#398539}

Patch Set 1 #

Patch Set 2 : Improves algorithm and updates chrome/installer/util/shell_util.cc to use it #

Patch Set 3 : Removes unnecessary #includes #

Patch Set 4 : Removes more unnecessary #includes and deps #

Patch Set 5 : Adds back one not-so-unnecessary dep #

Total comments: 8

Patch Set 6 : Addresses sdefresne's comments #

Total comments: 4

Patch Set 7 : Makes Base32Encode return the output string (instead of using an out param) #

Patch Set 8 : Updates chrome/installer/util/shell_util.cc for new Base32Encode signature #

Patch Set 9 : Rebase #

Total comments: 27

Patch Set 10 : Addresses gab's comments #

Total comments: 2

Patch Set 11 : Use constexpr C strings instead of const std::string #

Patch Set 12 : Rebase #

Patch Set 13 : Migrates installer/setup/user_hive_visitor.cc to use base32 component #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -98 lines) Patch
M chrome/chrome_installer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_installer_util.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/setup/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/setup/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/setup/user_hive_visitor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/installer/util/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/shell_util.h View 1 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -56 lines 0 comments Download
M chrome/installer/util/shell_util_unittest.cc View 1 1 chunk +0 lines, -13 lines 0 comments Download
A + components/base32.gypi View 4 2 chunks +5 lines, -7 lines 0 comments Download
A + components/base32/BUILD.gn View 4 1 chunk +5 lines, -8 lines 0 comments Download
A + components/base32/OWNERS View 1 chunk +2 lines, -3 lines 0 comments Download
A components/base32/base32.h View 1 2 3 4 5 6 7 8 9 1 chunk +34 lines, -0 lines 0 comments Download
A components/base32/base32.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +75 lines, -0 lines 0 comments Download
A components/base32/base32_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +55 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 66 (28 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/2017123002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2017123002/1
4 years, 6 months ago (2016-05-27 17:46:17 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-27 19:00:41 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/2017123002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2017123002/20001
4 years, 6 months ago (2016-06-01 13:25:09 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/156832) win_chromium_rel_ng on ...
4 years, 6 months ago (2016-06-01 13:30:39 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2017123002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2017123002/40001
4 years, 6 months ago (2016-06-01 13:43:19 UTC) #12
Rob Percival
4 years, 6 months ago (2016-06-01 13:59:26 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2017123002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2017123002/60001
4 years, 6 months ago (2016-06-01 13:59:41 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/199169)
4 years, 6 months ago (2016-06-01 14:06:35 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/2017123002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2017123002/80001
4 years, 6 months ago (2016-06-01 14:11:51 UTC) #20
Rob Percival
PTAL
4 years, 6 months ago (2016-06-01 14:12:39 UTC) #22
sdefresne
https://codereview.chromium.org/2017123002/diff/80001/components/base32/base32.h File components/base32/base32.h (right): https://codereview.chromium.org/2017123002/diff/80001/components/base32/base32.h#newcode25 components/base32/base32.h:25: // encoded |*output|. |input| and |*output| may not reference ...
4 years, 6 months ago (2016-06-01 14:25:38 UTC) #23
Rob Percival
https://codereview.chromium.org/2017123002/diff/80001/components/base32/base32.h File components/base32/base32.h (right): https://codereview.chromium.org/2017123002/diff/80001/components/base32/base32.h#newcode25 components/base32/base32.h:25: // encoded |*output|. |input| and |*output| may not reference ...
4 years, 6 months ago (2016-06-01 14:37:57 UTC) #24
sdefresne
https://codereview.chromium.org/2017123002/diff/100001/components/base32/base32.h File components/base32/base32.h (right): https://codereview.chromium.org/2017123002/diff/100001/components/base32/base32.h#newcode26 components/base32/base32.h:26: void Base32Encode(base::StringPiece input, It looks like this class is ...
4 years, 6 months ago (2016-06-01 14:45:10 UTC) #25
Rob Percival
https://codereview.chromium.org/2017123002/diff/100001/components/base32/base32.h File components/base32/base32.h (right): https://codereview.chromium.org/2017123002/diff/100001/components/base32/base32.h#newcode26 components/base32/base32.h:26: void Base32Encode(base::StringPiece input, On 2016/06/01 14:45:10, sdefresne wrote: > ...
4 years, 6 months ago (2016-06-01 14:49:52 UTC) #26
sdefresne
https://codereview.chromium.org/2017123002/diff/100001/components/base32/base32.h File components/base32/base32.h (right): https://codereview.chromium.org/2017123002/diff/100001/components/base32/base32.h#newcode26 components/base32/base32.h:26: void Base32Encode(base::StringPiece input, On 2016/06/01 14:49:52, Rob Percival wrote: ...
4 years, 6 months ago (2016-06-01 14:57:30 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/2017123002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2017123002/140001
4 years, 6 months ago (2016-06-01 15:04:19 UTC) #29
Rob Percival
https://codereview.chromium.org/2017123002/diff/100001/components/base32/base32.h File components/base32/base32.h (right): https://codereview.chromium.org/2017123002/diff/100001/components/base32/base32.h#newcode26 components/base32/base32.h:26: void Base32Encode(base::StringPiece input, On 2016/06/01 14:57:30, sdefresne wrote: > ...
4 years, 6 months ago (2016-06-01 15:04:40 UTC) #30
sdefresne
lgtm
4 years, 6 months ago (2016-06-01 16:16:17 UTC) #31
Rob Percival
4 years, 6 months ago (2016-06-01 16:16:30 UTC) #33
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-01 16:36:13 UTC) #35
Rob Percival
PTAL @gab
4 years, 6 months ago (2016-06-02 06:26:40 UTC) #37
gab
Thanks for doing this, first pass below https://codereview.chromium.org/2017123002/diff/160001/components/base32/base32.cc File components/base32/base32.cc (right): https://codereview.chromium.org/2017123002/diff/160001/components/base32/base32.cc#newcode13 components/base32/base32.cc:13: const char ...
4 years, 6 months ago (2016-06-03 18:46:11 UTC) #39
Rob Percival
https://codereview.chromium.org/2017123002/diff/160001/components/base32/base32.cc File components/base32/base32.cc (right): https://codereview.chromium.org/2017123002/diff/160001/components/base32/base32.cc#newcode13 components/base32/base32.cc:13: const char kEncoding[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"; On 2016/06/03 18:46:11, gab ...
4 years, 6 months ago (2016-06-04 06:20:25 UTC) #41
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2017123002/180001
4 years, 6 months ago (2016-06-04 06:22:09 UTC) #43
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-04 07:55:22 UTC) #45
gab
lgtm w/ comments, thanks! https://codereview.chromium.org/2017123002/diff/160001/components/base32/base32.cc File components/base32/base32.cc (right): https://codereview.chromium.org/2017123002/diff/160001/components/base32/base32.cc#newcode21 components/base32/base32.cc:21: for (size_t input_offset = 0; ...
4 years, 6 months ago (2016-06-07 01:24:10 UTC) #46
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2017123002/200001
4 years, 6 months ago (2016-06-07 23:10:08 UTC) #48
Rob Percival
PTAL again sdefresne, as the code has changed significantly since your LGTM. https://codereview.chromium.org/2017123002/diff/180001/components/base32/base32_unittest.cc File components/base32/base32_unittest.cc ...
4 years, 6 months ago (2016-06-07 23:11:15 UTC) #49
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-gn/builds/17770)
4 years, 6 months ago (2016-06-07 23:48:09 UTC) #51
sdefresne
still lgtm (once the windows build failure is fixed)
4 years, 6 months ago (2016-06-08 09:22:35 UTC) #52
Rob Percival
On 2016/06/08 09:22:35, sdefresne wrote: > still lgtm (once the windows build failure is fixed) ...
4 years, 6 months ago (2016-06-08 12:15:41 UTC) #53
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2017123002/240001
4 years, 6 months ago (2016-06-08 12:16:14 UTC) #55
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-08 13:18:03 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2017123002/240001
4 years, 6 months ago (2016-06-08 13:36:32 UTC) #60
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 6 months ago (2016-06-08 13:45:24 UTC) #62
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/633e8bc192437bdad37c49aa3d4024fe2d641c94 Cr-Commit-Position: refs/heads/master@{#398539}
4 years, 6 months ago (2016-06-08 13:48:15 UTC) #64
jam
Why would we create a component for 2 files instead of putting these in base/ ...
4 years, 5 months ago (2016-06-28 17:17:09 UTC) #65
Rob Percival
4 years, 5 months ago (2016-06-28 17:26:54 UTC) #66
Message was sent while issue was closed.
On 2016/06/28 17:17:09, jam wrote:
> Why would we create a component for 2 files instead of putting these in base/
by
> the other decoding functions?

Check out the discussion linked in the description.

Powered by Google App Engine
This is Rietveld 408576698