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 92873003: Adds asynchronous unzip functions to ZipReader (Closed)

Created:
7 years ago by Drew Haven
Modified:
6 years, 11 months ago
Reviewers:
satorux1
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, stephenlin1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Adds asynchronous unzip functions to ZipReader Updates ImageWriterPrivate to use the new asynchronous functions. BUG=324091 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245393

Patch Set 1 #

Patch Set 2 : Moves asynchronous writing to the ZipReader class. #

Patch Set 3 : Cleanup #

Total comments: 12

Patch Set 4 : Removes message loop, refactors callbacks. #

Patch Set 5 : Review feedback. #

Patch Set 6 : Removes unnecessary imports. #

Total comments: 31

Patch Set 7 : Fixes up commenting and minor style issues. #

Total comments: 6

Patch Set 8 : Fixes callback types and removes unnecessary message posting. #

Total comments: 4

Patch Set 9 : Minor nit fixes. #

Patch Set 10 : Adds explicit import of callback.h for android and adds const specifier for Windows. #

Patch Set 11 : Adds compile guard on tests for non-supported OSes. #

Patch Set 12 : Adds error_messages.h header for Win/Mac/Android tests. #

Patch Set 13 : Fixes tests for unimplemented OSes, ChromeOS. #

Patch Set 14 : Removes some tests from Mac/Win builds. #

Patch Set 15 : Fixes unused variable error on Mac. #

Patch Set 16 : Fixes the expectation for non-linux/chromeos OSes on unzip. Adds namespaces to ChromeOS fixtures. #

Patch Set 17 : Fixes the expectation for non-linux/chromeos OSes on unzip. Adds namespaces to ChromeOS fixtures. #

Patch Set 18 : Fixes namespacing, really. #

Patch Set 19 : Fixes ChromeOS test initialization. #

Patch Set 20 : Removes Chrome OS testing of unzip due to test harness issues. #

Patch Set 21 : Removes ChromeOS testing of unzip operation. #

Patch Set 22 : Actually disables the test under ChromeOS #

Patch Set 23 : Resync to incorporate error messages. #

Patch Set 24 : Revert unittest changes. #

Patch Set 25 : Resync #

Patch Set 26 : Moves from WritePlatformFileAtCurrentPos to WritePlatformFile. #

Patch Set 27 : Fixes windows test execution bug. #

Patch Set 28 : Resync to include new test changes. #

Patch Set 29 : Resync #

Patch Set 30 : Uses the correct target for directory test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+454 lines, -64 lines) Patch
M chrome/browser/extensions/api/image_writer_private/operation.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 5 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/image_writer_private/operation.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 4 chunks +39 lines, -27 lines 0 comments Download
M chrome/browser/extensions/api/image_writer_private/operation_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/image_writer_private/operation_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +123 lines, -14 lines 0 comments Download
M chrome/browser/extensions/api/image_writer_private/test_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -3 lines 0 comments Download
M third_party/zlib/google/zip_reader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +32 lines, -1 line 0 comments Download
M third_party/zlib/google/zip_reader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 4 chunks +111 lines, -1 line 0 comments Download
M third_party/zlib/google/zip_reader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 10 chunks +133 lines, -8 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
Drew Haven
Satoru, I moved the logic into ZipReader as you suggested. Please take a look. No ...
7 years ago (2013-12-03 23:43:56 UTC) #1
satorux1
Thank you for adding this feature. High-level comments: - WeakPtr only works if you are ...
7 years ago (2013-12-05 04:39:37 UTC) #2
Drew Haven
I fixed up the code. Hopefully it looks a bit better now. Thanks again for ...
7 years ago (2013-12-09 23:33:12 UTC) #3
satorux1
looking pretty nice. https://codereview.chromium.org/92873003/diff/100001/third_party/zlib/google/zip_reader.cc File third_party/zlib/google/zip_reader.cc (right): https://codereview.chromium.org/92873003/diff/100001/third_party/zlib/google/zip_reader.cc#newcode251 third_party/zlib/google/zip_reader.cc:251: success_callback.Run(); It's probably nicer to run ...
7 years ago (2013-12-11 06:45:11 UTC) #4
Drew Haven
Comments addressed. Thanks again. https://codereview.chromium.org/92873003/diff/100001/third_party/zlib/google/zip_reader.cc File third_party/zlib/google/zip_reader.cc (right): https://codereview.chromium.org/92873003/diff/100001/third_party/zlib/google/zip_reader.cc#newcode251 third_party/zlib/google/zip_reader.cc:251: success_callback.Run(); On 2013/12/11 06:45:11, satorux1 ...
7 years ago (2013-12-11 18:20:53 UTC) #5
satorux1
almost there! https://codereview.chromium.org/92873003/diff/100001/third_party/zlib/google/zip_reader_unittest.cc File third_party/zlib/google/zip_reader_unittest.cc (right): https://codereview.chromium.org/92873003/diff/100001/third_party/zlib/google/zip_reader_unittest.cc#newcode95 third_party/zlib/google/zip_reader_unittest.cc:95: int64 current_progress; On 2013/12/11 18:20:53, Drew Haven ...
7 years ago (2013-12-12 08:13:00 UTC) #6
Drew Haven
The GMock comments make some sense, though I've been allowed to sneak through GMock on ...
7 years ago (2013-12-12 22:06:16 UTC) #7
satorux1
LGTM with nits https://codereview.chromium.org/92873003/diff/140001/chrome/browser/extensions/api/image_writer_private/operation.cc File chrome/browser/extensions/api/image_writer_private/operation.cc (right): https://codereview.chromium.org/92873003/diff/140001/chrome/browser/extensions/api/image_writer_private/operation.cc#newcode1 chrome/browser/extensions/api/image_writer_private/operation.cc:1: // remove this https://codereview.chromium.org/92873003/diff/140001/third_party/zlib/google/zip_reader.cc File third_party/zlib/google/zip_reader.cc ...
7 years ago (2013-12-13 07:55:09 UTC) #8
Drew Haven
Thanks again for the review. https://codereview.chromium.org/92873003/diff/140001/chrome/browser/extensions/api/image_writer_private/operation.cc File chrome/browser/extensions/api/image_writer_private/operation.cc (right): https://codereview.chromium.org/92873003/diff/140001/chrome/browser/extensions/api/image_writer_private/operation.cc#newcode1 chrome/browser/extensions/api/image_writer_private/operation.cc:1: // On 2013/12/13 07:55:09, ...
7 years ago (2013-12-13 18:36:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/92873003/160001
7 years ago (2013-12-13 18:42:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/92873003/160001
7 years ago (2013-12-13 19:22:36 UTC) #11
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=34745
7 years ago (2013-12-13 20:24:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/92873003/280001
7 years ago (2013-12-17 05:17:37 UTC) #13
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, ...
7 years ago (2013-12-17 06:31:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/92873003/360001
7 years ago (2013-12-17 21:49:45 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=185888
7 years ago (2013-12-17 23:44:11 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/92873003/400001
7 years ago (2013-12-18 00:05:53 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=185965
7 years ago (2013-12-18 01:29:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/92873003/420001
7 years ago (2013-12-18 03:08:56 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=237589
7 years ago (2013-12-18 05:50:54 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/92873003/480001
7 years ago (2013-12-19 00:57:33 UTC) #21
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=238145
7 years ago (2013-12-19 02:47:52 UTC) #22
Drew Haven
Satoru, Would you have an idea on why this is failing on win? I can't ...
7 years ago (2013-12-19 07:49:34 UTC) #23
satorux1
CRLF?
7 years ago (2013-12-19 07:51:07 UTC) #24
Drew Haven
On 2013/12/19 07:51:07, satorux1 wrote: > CRLF? Apparently there's a bug in the Windows platform-file ...
7 years ago (2013-12-20 00:06:54 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/92873003/500001
7 years ago (2013-12-20 00:07:02 UTC) #26
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=238779
7 years ago (2013-12-20 02:28:16 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/92873003/500001
7 years ago (2013-12-20 21:27:24 UTC) #28
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=239391
7 years ago (2013-12-21 02:18:20 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/92873003/750001
6 years, 11 months ago (2014-01-04 17:09:19 UTC) #30
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
6 years, 11 months ago (2014-01-04 23:39:12 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/92873003/750001
6 years, 11 months ago (2014-01-05 17:36:21 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/92873003/1390001
6 years, 11 months ago (2014-01-16 07:54:41 UTC) #34
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
6 years, 11 months ago (2014-01-16 13:53:50 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/92873003/1740001
6 years, 11 months ago (2014-01-16 23:01:24 UTC) #36
commit-bot: I haz the power
6 years, 11 months ago (2014-01-17 00:36:34 UTC) #37
Message was sent while issue was closed.
Change committed as 245393

Powered by Google App Engine
This is Rietveld 408576698