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

Issue 2807063002: Replace Libarchive with MiniZip. (Closed)

Created:
3 years, 8 months ago by takise
Modified:
3 years, 8 months ago
Reviewers:
mtomasz
CC:
chromium-reviews, yawano
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace Libarchive with MiniZip. This CL rewrites all the components that depend on libarchive. Since we plan to add the files related to build such as BUILD.gn in another CL, GN doesn't compile the code in this CL yet. BUG=607078 TEST=manually tested CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2807063002 Cr-Commit-Position: refs/heads/master@{#463567} Committed: https://chromium.googlesource.com/chromium/src/+/cac7340db735b9e8228e8b5abf886b20719db262

Patch Set 1 #

Patch Set 2 : Delete BUILD.gn #

Total comments: 70

Patch Set 3 : Fix the code according to the comments. #

Total comments: 6

Patch Set 4 : Fix a few nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+980 lines, -457 lines) Patch
M ui/file_manager/zip_archiver/cpp/compressor.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/file_manager/zip_archiver/cpp/compressor.cc View 6 chunks +36 lines, -16 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/compressor_archive.h View 1 2 1 chunk +21 lines, -13 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/compressor_archive_libarchive.h View 1 2 2 chunks +49 lines, -17 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/compressor_archive_libarchive.cc View 1 2 3 1 chunk +192 lines, -96 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/compressor_io_javascript_stream.h View 1 2 4 chunks +26 lines, -6 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/compressor_io_javascript_stream.cc View 1 2 3 3 chunks +96 lines, -11 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/compressor_stream.h View 1 2 3 2 chunks +11 lines, -5 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/javascript_compressor_requestor_interface.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/file_manager/zip_archiver/cpp/javascript_message_sender_interface.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/module.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/request.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/request.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/volume.h View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/volume.cc View 1 2 5 chunks +53 lines, -24 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/volume_archive.h View 1 2 2 chunks +14 lines, -10 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/volume_archive_libarchive.h View 1 2 3 6 chunks +92 lines, -21 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/volume_archive_libarchive.cc View 1 2 8 chunks +296 lines, -150 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/volume_reader.h View 1 2 2 chunks +7 lines, -12 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/volume_reader_javascript_stream.h View 1 2 3 chunks +6 lines, -8 lines 0 comments Download
M ui/file_manager/zip_archiver/cpp/volume_reader_javascript_stream.cc View 1 2 9 chunks +16 lines, -33 lines 0 comments Download
M ui/file_manager/zip_archiver/html/passphrase-dialog.html View 1 chunk +17 lines, -10 lines 0 comments Download
M ui/file_manager/zip_archiver/js/app.js View 1 chunk +2 lines, -1 line 0 comments Download
M ui/file_manager/zip_archiver/js/background.js View 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/zip_archiver/js/compressor.js View 4 chunks +9 lines, -9 lines 0 comments Download
M ui/file_manager/zip_archiver/js/passphrase-dialog.js View 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/zip_archiver/js/request.js View 3 chunks +5 lines, -6 lines 0 comments Download
M ui/file_manager/zip_archiver/js/volume.js View 1 chunk +4 lines, -1 line 0 comments Download
A ui/file_manager/zip_archiver/module.nmf.txt View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
takise
This is a big(about 1000 lines) change that replaces libarchive with minizip. Please take a ...
3 years, 8 months ago (2017-04-10 04:43:26 UTC) #4
mtomasz
Could you update tests?
3 years, 8 months ago (2017-04-10 06:16:28 UTC) #5
mtomasz
Thanks! https://codereview.chromium.org/2807063002/diff/20001/ui/file_manager/zip_archiver/cpp/compressor.cc File ui/file_manager/zip_archiver/cpp/compressor.cc (right): https://codereview.chromium.org/2807063002/diff/20001/ui/file_manager/zip_archiver/cpp/compressor.cc#newcode11 ui/file_manager/zip_archiver/cpp/compressor.cc:11: #include "compressor_archive_libarchive.h" Let's rename files in a separate ...
3 years, 8 months ago (2017-04-10 07:15:10 UTC) #6
takise
On 2017/04/10 06:16:28, mtomasz wrote: > Could you update tests? Since it was last week ...
3 years, 8 months ago (2017-04-10 07:57:24 UTC) #7
mtomasz
On 2017/04/10 07:57:24, takise wrote: > On 2017/04/10 06:16:28, mtomasz wrote: > > Could you ...
3 years, 8 months ago (2017-04-10 08:13:07 UTC) #8
takise
Please take a look. I explained about the background of our cache algorithms, so please ...
3 years, 8 months ago (2017-04-11 06:00:52 UTC) #9
mtomasz
LGTM with nits https://codereview.chromium.org/2807063002/diff/20001/ui/file_manager/zip_archiver/cpp/volume.cc File ui/file_manager/zip_archiver/cpp/volume.cc (right): https://codereview.chromium.org/2807063002/diff/20001/ui/file_manager/zip_archiver/cpp/volume.cc#newcode364 ui/file_manager/zip_archiver/cpp/volume.cc:364: int return_value = volume_archive_->GoToNextFile(); On 2017/04/11 ...
3 years, 8 months ago (2017-04-11 06:36:45 UTC) #10
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/2807063002/60001
3 years, 8 months ago (2017-04-11 07:34:42 UTC) #17
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 07:41:05 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/cac7340db735b9e8228e8b5abf88...

Powered by Google App Engine
This is Rietveld 408576698