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

Issue 99333019: Preserve modification timestamp when zipping files. (Closed)

Created:
7 years ago by João Eiras
Modified:
7 years ago
Reviewers:
satorux1, hshi1
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Preserve modification timestamp when zipping files. Files packaged in a zip archive now have their last modification date and time set. When unzipping the files, the output file's last modification time is also set (if the time in the zip file is not valid, the output's file time is not set to prevent the original bug causing files to have dates set to 1980). Also fixed some cpplint issues. BUG=326988 TEST=ZipTest.ZipTimeStamp Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241278

Patch Set 1 #

Total comments: 5

Patch Set 2 : adressed review comments #

Total comments: 18

Patch Set 3 : addressed review issues #

Total comments: 2

Patch Set 4 : better comments, cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -9 lines) Patch
M third_party/zlib/google/zip.cc View 1 2 4 chunks +41 lines, -4 lines 0 comments Download
M third_party/zlib/google/zip_reader.h View 1 2 3 3 chunks +14 lines, -2 lines 0 comments Download
M third_party/zlib/google/zip_reader.cc View 1 2 3 2 chunks +9 lines, -3 lines 0 comments Download
M third_party/zlib/google/zip_unittest.cc View 1 2 3 4 chunks +80 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
João Eiras
7 years ago (2013-12-11 20:27:59 UTC) #1
satorux1
https://codereview.chromium.org/99333019/diff/1/third_party/zlib/google/zip.cc File third_party/zlib/google/zip.cc (right): https://codereview.chromium.org/99333019/diff/1/third_party/zlib/google/zip.cc#newcode30 third_party/zlib/google/zip.cc:30: zip_fileinfo TimeToZipFileInfo(const base::Time& file_time) { function comment is missing. ...
7 years ago (2013-12-12 08:03:57 UTC) #2
João Eiras
> https://codereview.chromium.org/99333019/diff/1/third_party/zlib/google/zip_unittest.cc#newcode134 > third_party/zlib/google/zip_unittest.cc:134: // Invalid date means the > modification time will default to ...
7 years ago (2013-12-12 14:14:56 UTC) #3
João Eiras
> The epoch is only used internally when the date stored in the zip file ...
7 years ago (2013-12-12 14:16:16 UTC) #4
satorux1
On 2013/12/12 14:14:56, João Eiras wrote: > > > https://codereview.chromium.org/99333019/diff/1/third_party/zlib/google/zip_unittest.cc#newcode134 > > third_party/zlib/google/zip_unittest.cc:134: // Invalid ...
7 years ago (2013-12-13 04:20:02 UTC) #5
satorux1
https://codereview.chromium.org/99333019/diff/20001/third_party/zlib/google/zip.cc File third_party/zlib/google/zip.cc (right): https://codereview.chromium.org/99333019/diff/20001/third_party/zlib/google/zip.cc#newcode32 third_party/zlib/google/zip.cc:32: */ Please use // for comments https://codereview.chromium.org/99333019/diff/20001/third_party/zlib/google/zip.cc#newcode57 third_party/zlib/google/zip.cc:57: */ ...
7 years ago (2013-12-13 04:52:50 UTC) #6
João Eiras
https://codereview.chromium.org/99333019/diff/20001/third_party/zlib/google/zip_unittest.cc File third_party/zlib/google/zip_unittest.cc (right): https://codereview.chromium.org/99333019/diff/20001/third_party/zlib/google/zip_unittest.cc#newcode127 third_party/zlib/google/zip_unittest.cc:127: base::Time now_time = base::Time::Now() - base::TimeDelta::FromSeconds(1); On 2013/12/13 04:52:50, ...
7 years ago (2013-12-13 17:01:56 UTC) #7
satorux1
LGTM with requests: https://codereview.chromium.org/99333019/diff/20001/third_party/zlib/google/zip_unittest.cc File third_party/zlib/google/zip_unittest.cc (right): https://codereview.chromium.org/99333019/diff/20001/third_party/zlib/google/zip_unittest.cc#newcode104 third_party/zlib/google/zip_unittest.cc:104: // set to the valud or ...
7 years ago (2013-12-17 02:32:25 UTC) #8
João Eiras
https://codereview.chromium.org/99333019/diff/20001/third_party/zlib/google/zip.cc File third_party/zlib/google/zip.cc (right): https://codereview.chromium.org/99333019/diff/20001/third_party/zlib/google/zip.cc#newcode32 third_party/zlib/google/zip.cc:32: */ On 2013/12/13 04:52:50, satorux1 wrote: > Please use ...
7 years ago (2013-12-17 10:15:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaoe@opera.com/99333019/60001
7 years ago (2013-12-17 10:19:05 UTC) #10
commit-bot: I haz the power
7 years ago (2013-12-17 14:40:33 UTC) #11
Message was sent while issue was closed.
Change committed as 241278

Powered by Google App Engine
This is Rietveld 408576698