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

Issue 8508003: zip: Add ZipReader and rework Unzip() using the new class. (Closed)

Created:
9 years, 1 month ago by satorux1
Modified:
9 years, 1 month ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

zip: Add ZipReader and rework Unzip() using the new class. ZipReader implementation is based on ExtractCurrentFile() in zip.cc. The basic logic is not changed, but the code is simplified. BUG=chromium-os:22351 TEST=out/Release/unit_tests --gtest_filter=Zip* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109655

Patch Set 1 #

Total comments: 20

Patch Set 2 : address comments #

Total comments: 2

Patch Set 3 : fix mad build #

Patch Set 4 : Fix test failures on linux and windows #

Patch Set 5 : rebased. #

Patch Set 6 : fix a win failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+685 lines, -107 lines) Patch
M chrome/chrome_common.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/zip.cc View 1 2 chunks +22 lines, -106 lines 0 comments Download
A chrome/common/zip_reader.h View 1 2 1 chunk +152 lines, -0 lines 0 comments Download
A chrome/common/zip_reader.cc View 1 2 3 4 5 1 chunk +239 lines, -0 lines 0 comments Download
A chrome/common/zip_reader_unittest.cc View 1 2 3 1 chunk +265 lines, -0 lines 0 comments Download
M chrome/common/zip_unittest.cc View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
satorux1
9 years, 1 month ago (2011-11-09 07:39:58 UTC) #1
Aaron Boodman
nice http://codereview.chromium.org/8508003/diff/1/chrome/common/zip_reader.cc File chrome/common/zip_reader.cc (right): http://codereview.chromium.org/8508003/diff/1/chrome/common/zip_reader.cc#newcode31 chrome/common/zip_reader.cc:31: // Check the file name here for directory ...
9 years, 1 month ago (2011-11-09 08:00:39 UTC) #2
satorux1
Thank you for the great comments! http://codereview.chromium.org/8508003/diff/1/chrome/common/zip_reader.cc File chrome/common/zip_reader.cc (right): http://codereview.chromium.org/8508003/diff/1/chrome/common/zip_reader.cc#newcode31 chrome/common/zip_reader.cc:31: // Check the ...
9 years, 1 month ago (2011-11-10 08:00:56 UTC) #3
Aaron Boodman
LGTM w/ one question (you don't have to wait for another review from me) http://codereview.chromium.org/8508003/diff/2002/chrome/common/zip_reader.h ...
9 years, 1 month ago (2011-11-10 08:13:05 UTC) #4
satorux1
http://codereview.chromium.org/8508003/diff/2002/chrome/common/zip_reader.h File chrome/common/zip_reader.h (right): http://codereview.chromium.org/8508003/diff/2002/chrome/common/zip_reader.h#newcode47 chrome/common/zip_reader.h:47: // "foo/bar.txt", but if it's absolute, is_unsafe() returns true. ...
9 years, 1 month ago (2011-11-10 17:42:26 UTC) #5
Aaron Boodman
On 2011/11/10 17:42:26, satorux1 wrote: > Maybe we could return the sanitized path name from ...
9 years, 1 month ago (2011-11-10 19:37:38 UTC) #6
Aaron Boodman
I think I need to say "LGTM" again, for the commit queue.
9 years, 1 month ago (2011-11-10 19:38:06 UTC) #7
satorux1
On 2011/11/10 19:38:06, Aaron Boodman wrote: > I think I need to say "LGTM" again, ...
9 years, 1 month ago (2011-11-10 23:24:21 UTC) #8
Aaron Boodman
lgtm
9 years, 1 month ago (2011-11-11 17:12:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/satorux@chromium.org/8508003/11018
9 years, 1 month ago (2011-11-11 17:20:14 UTC) #10
commit-bot: I haz the power
9 years, 1 month ago (2011-11-11 18:50:04 UTC) #11
Change committed as 109655

Powered by Google App Engine
This is Rietveld 408576698