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

Issue 2031193002: [Courgette] Refactor BSDiff namespaces and bsdiff::search() interface. (Closed)

Created:
4 years, 6 months ago by huangs
Modified:
4 years, 4 months ago
CC:
chromium-reviews, huangs+watch_chromium.org, Michael Moss, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Courgette] Refactor BSDiff namespaces and bsdiff::search() interface. Details: - Move BSDiff (but not PagedArray) from namespace courgette to bsdiff. - Change namespace courgette::qsuf to qsuf. - Change bsdiff:search() to return struct {pos, size} so we don't need awkward pointer passing; update callers. - Updated BSDiff callers. Also fix weird hybrid usage by setup_util.cc, which calls Courgette's BSDiff, but using OK from BSPatch. BUG=608885 Committed: https://crrev.com/7054b5a2e3b2ce7f5b2e868e91d54b5ec0773089 Cr-Commit-Position: refs/heads/master@{#407924}

Patch Set 1 #

Patch Set 2 : Fix missed spot; add comments. #

Patch Set 3 : Fix more gap; fix Installer confusion; update README.chromium. #

Total comments: 3

Patch Set 4 : Make license style uniform; remove checklicenses.py entries. #

Total comments: 1

Patch Set 5 : Sync and merge. #

Patch Set 6 : Sync. #

Patch Set 7 : Sync and merge. #

Patch Set 8 : Make search() return struct; update comments. #

Patch Set 9 : Sync and merge. #

Patch Set 10 : Sync. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -140 lines) Patch
M chrome/installer/setup/setup_util.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M components/update_client/component_patcher_operation.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M courgette/bsdiff_memory_unittest.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M courgette/courgette_tool.cc View 1 2 3 4 5 6 7 8 9 4 chunks +14 lines, -10 lines 0 comments Download
M courgette/simple_delta.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M courgette/third_party/bsdiff/README.chromium View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download
M courgette/third_party/bsdiff/bsdiff.h View 1 2 3 4 3 chunks +13 lines, -10 lines 0 comments Download
M courgette/third_party/bsdiff/bsdiff_apply.cc View 1 2 3 4 2 chunks +12 lines, -2 lines 0 comments Download
M courgette/third_party/bsdiff/bsdiff_create.cc View 1 2 3 4 5 6 7 8 chunks +27 lines, -16 lines 0 comments Download
M courgette/third_party/bsdiff/bsdiff_search.h View 1 2 3 4 5 6 7 2 chunks +30 lines, -34 lines 0 comments Download
M courgette/third_party/bsdiff/bsdiff_search_unittest.cc View 1 2 3 4 5 6 7 5 chunks +21 lines, -23 lines 0 comments Download
M courgette/third_party/bsdiff/qsufsort.h View 1 2 3 4 5 6 3 chunks +2 lines, -3 lines 0 comments Download
M courgette/third_party/bsdiff/qsufsort_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +32 lines, -19 lines 0 comments Download
M courgette/versioning_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 42 (19 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/2031193002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2031193002/1
4 years, 6 months ago (2016-06-03 02:02:43 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/147458)
4 years, 6 months ago (2016-06-03 02:14:57 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/2031193002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2031193002/40001
4 years, 6 months ago (2016-06-03 05:06:52 UTC) #7
huangs
chrisha@: Decided to do some refactoring before I replace QSufSort with divsufsort. PTAL the Courgette ...
4 years, 6 months ago (2016-06-03 05:12:05 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/240701)
4 years, 6 months ago (2016-06-03 06:49:47 UTC) #11
huangs
Updated licenses, want to see if this makes trybot happy. I'll extract the license change ...
4 years, 6 months ago (2016-06-03 15:46:05 UTC) #12
grt (UTC plus 2)
+mmoss to comment on below. https://codereview.chromium.org/2031193002/diff/40001/chrome/installer/setup/setup_util.cc File chrome/installer/setup/setup_util.cc (right): https://codereview.chromium.org/2031193002/diff/40001/chrome/installer/setup/setup_util.cc#newcode90 chrome/installer/setup/setup_util.cc:90: const int exit_code = ...
4 years, 6 months ago (2016-06-03 15:58:36 UTC) #13
Michael Moss
https://codereview.chromium.org/2031193002/diff/40001/chrome/installer/setup/setup_util.cc File chrome/installer/setup/setup_util.cc (right): https://codereview.chromium.org/2031193002/diff/40001/chrome/installer/setup/setup_util.cc#newcode90 chrome/installer/setup/setup_util.cc:90: const int exit_code = patch_status != bsdiff::OK ? > ...
4 years, 6 months ago (2016-06-03 16:40:20 UTC) #15
huangs
https://chromiumcodereview.appspot.com/2031193002/diff/60001/courgette/third_party/bsdiff/bsdiff_search.h File courgette/third_party/bsdiff/bsdiff_search.h (right): https://chromiumcodereview.appspot.com/2031193002/diff/60001/courgette/third_party/bsdiff/bsdiff_search.h#newcode53 courgette/third_party/bsdiff/bsdiff_search.h:53: // We use binary search here, but the desired ...
4 years, 6 months ago (2016-06-06 04:53:35 UTC) #16
huangs
Update: Moving BSDiff search() extraction to separate file to this CL: http://crrev.com/2078743002 Will merge later.
4 years, 6 months ago (2016-06-20 18:03:19 UTC) #17
huangs
PTAL chrisha@ for general review (before bugging OWNERs for various call sites outside Courgette). After ...
4 years, 5 months ago (2016-06-29 15:59:14 UTC) #20
chrisha
lgtm!
4 years, 5 months ago (2016-07-08 14:46:32 UTC) #21
huangs
Thanks. +jochen@ for OWNER review for: chrome\installer\setup\setup_util.cc chrome\utility\chrome_content_utility_client.cc components\update_client\component_patcher_operation.cc PTAL. Thanks!
4 years, 5 months ago (2016-07-11 15:49:53 UTC) #23
jochen (gone - plz use gerrit)
lgtm
4 years, 5 months ago (2016-07-12 15:09:44 UTC) #24
huangs
Thanks! Committing.
4 years, 5 months ago (2016-07-12 15:10:51 UTC) #25
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/2031193002/160001
4 years, 5 months ago (2016-07-12 15:12:19 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/242622)
4 years, 5 months ago (2016-07-12 16:49:45 UTC) #30
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/2031193002/160001
4 years, 5 months ago (2016-07-12 17:01:56 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/242702)
4 years, 5 months ago (2016-07-12 18:34:52 UTC) #34
huangs
Oops didn't see that this didn't commit. Will retry after sync!
4 years, 4 months ago (2016-07-26 18:10:24 UTC) #35
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/2031193002/180001
4 years, 4 months ago (2016-07-26 20:49:50 UTC) #38
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 4 months ago (2016-07-26 21:46:35 UTC) #40
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 21:49:03 UTC) #42
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/7054b5a2e3b2ce7f5b2e868e91d54b5ec0773089
Cr-Commit-Position: refs/heads/master@{#407924}

Powered by Google App Engine
This is Rietveld 408576698