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

Issue 2805183002: Make ZIP archiver a component extension. (Closed)

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

Description

Make ZIP archiver a component extension. This CL adds ZIP archiver to the list of component extensions. Currently, ZIP archiver is in ui/third_party/zip_archiver. This extension was originally maintained in https://chromium.googlesource.com/apps/unpacker. By making it a component extension, we can get the following benefits. (1) Tighter integration into Files app on Chrome OS. (2) Availability in guest mode. (3) Automated tests. (4) Easier development cycles. ZIP archiver uses Native Client to wrap MiniZip in C++. Since .pexe file, which is a binary file that contains modules written in C++, is built in compile time, we need to manually specify the path of the file in chrome_component_extension_resource_manager.cc. Note that we use .pexe.js instead of .pexe because .grd file ignores .pexe files. BUG=607078 TEST=manually tested Review-Url: https://codereview.chromium.org/2805183002 Cr-Commit-Position: refs/heads/master@{#465947} Committed: https://chromium.googlesource.com/chromium/src/+/2cab8929074f911590ef5a1da345b5519dfc1c81

Patch Set 1 #

Patch Set 2 : Check the flag to load ZIP archiver. #

Patch Set 3 : Fix the code so that ZIP archiver is added only on Chrome OS. #

Total comments: 1

Patch Set 4 : Move the command line check into the function body. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -0 lines) Patch
M chrome/browser/extensions/chrome_component_extension_resource_manager.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/component_extensions_whitelist/whitelist.cc View 1 chunk +1 line, -0 lines 3 comments Download
M chrome/browser/extensions/component_loader.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/component_loader.cc View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (20 generated)
takise
PTAL. Thank you!
3 years, 8 months ago (2017-04-07 02:32:44 UTC) #3
benwells
On 2017/04/07 02:32:44, takise wrote: > PTAL. Thank you! What builds the pexe? Like, is ...
3 years, 8 months ago (2017-04-07 03:29:36 UTC) #4
takise
On 2017/04/07 03:29:36, benwells wrote: > On 2017/04/07 02:32:44, takise wrote: > > PTAL. Thank ...
3 years, 8 months ago (2017-04-07 04:33:07 UTC) #5
benwells
On 2017/04/07 04:33:07, takise wrote: > On 2017/04/07 03:29:36, benwells wrote: > > On 2017/04/07 ...
3 years, 8 months ago (2017-04-07 04:55:43 UTC) #6
benwells
On 2017/04/07 04:33:07, takise wrote: > On 2017/04/07 03:29:36, benwells wrote: > > On 2017/04/07 ...
3 years, 8 months ago (2017-04-07 04:55:45 UTC) #7
takise
benwells@ Please take a look at the code again because I change the code a ...
3 years, 8 months ago (2017-04-14 02:19:12 UTC) #16
benwells
https://codereview.chromium.org/2805183002/diff/40001/chrome/browser/extensions/component_loader.cc File chrome/browser/extensions/component_loader.cc (right): https://codereview.chromium.org/2805183002/diff/40001/chrome/browser/extensions/component_loader.cc#newcode565 chrome/browser/extensions/component_loader.cc:565: #if defined(OS_CHROMEOS) why do you need the flag here ...
3 years, 8 months ago (2017-04-14 05:12:32 UTC) #17
takise
> why do you need the flag here and in the body of AddZipArchiverExtension? Thank ...
3 years, 8 months ago (2017-04-14 05:30:03 UTC) #18
benwells
lgtm
3 years, 8 months ago (2017-04-14 05:45:16 UTC) #19
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/2805183002/60001
3 years, 8 months ago (2017-04-14 06:33:53 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/411390)
3 years, 8 months ago (2017-04-14 06:43:26 UTC) #27
yawano
brettw@: PTAL whitelist.cc. Thank you!
3 years, 8 months ago (2017-04-20 01:21:18 UTC) #29
yawano
Please wait to review this CL. Thanks. https://codereview.chromium.org/2805183002/diff/60001/chrome/browser/extensions/component_extensions_whitelist/whitelist.cc File chrome/browser/extensions/component_extensions_whitelist/whitelist.cc (right): https://codereview.chromium.org/2805183002/diff/60001/chrome/browser/extensions/component_extensions_whitelist/whitelist.cc#newcode44 chrome/browser/extensions/component_extensions_whitelist/whitelist.cc:44: extension_misc::kZIPUnpackerExtensionId, IIUC, ...
3 years, 8 months ago (2017-04-20 01:43:16 UTC) #30
brettw
https://codereview.chromium.org/2805183002/diff/60001/chrome/browser/extensions/component_extensions_whitelist/whitelist.cc File chrome/browser/extensions/component_extensions_whitelist/whitelist.cc (right): https://codereview.chromium.org/2805183002/diff/60001/chrome/browser/extensions/component_extensions_whitelist/whitelist.cc#newcode44 chrome/browser/extensions/component_extensions_whitelist/whitelist.cc:44: extension_misc::kZIPUnpackerExtensionId, Don't we need this to be done before ...
3 years, 8 months ago (2017-04-20 03:23:17 UTC) #31
yawano
This CL was ready for review. Sorry for going back and forth. brettw@: PTAL whitelist.cc. ...
3 years, 8 months ago (2017-04-20 03:52:24 UTC) #32
brettw
Oh, I get it, the extension would either use the extension ID or the manifest, ...
3 years, 8 months ago (2017-04-20 04:39:59 UTC) #33
yawano
On 2017/04/20 04:39:59, brettw (plz ping after 24h) wrote: > Oh, I get it, the ...
3 years, 8 months ago (2017-04-20 05:38:20 UTC) #34
yawano
On 2017/04/20 05:38:20, yawano wrote: > On 2017/04/20 04:39:59, brettw (plz ping after 24h) wrote: ...
3 years, 8 months ago (2017-04-20 07:30:28 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/2805183002/60001
3 years, 8 months ago (2017-04-20 07:31:02 UTC) #37
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/2cab8929074f911590ef5a1da345b5519dfc1c81
3 years, 8 months ago (2017-04-20 08:25:49 UTC) #40
brettw
3 years, 8 months ago (2017-04-20 16:52:57 UTC) #41
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698