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

Issue 2874503002: Refactor CRX verification in preparation to support CRX₃ files. (Closed)

Created:
3 years, 7 months ago by waffles
Modified:
3 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor CRX verification in preparation to support CRX₃ files. Clarified that the crx_file.* refers to CRX₂, moved verification out of the CRX₂ code to allow callers to specify CRX₃-permissive policies. Also fixed a potential crash in extension_creator.cc. BUG=720092 Review-Url: https://codereview.chromium.org/2874503002 Cr-Commit-Position: refs/heads/master@{#473780} Committed: https://chromium.googlesource.com/chromium/src/+/5918d5fbdda9a61e2b83735975fcd7ebbf4d4645

Patch Set 1 : Base CL #

Total comments: 1

Patch Set 2 : No subclass #

Total comments: 76

Patch Set 3 : Remove the class #

Patch Set 4 : Fix string constructor #

Patch Set 5 : Do not reorder histogram #

Total comments: 6

Patch Set 6 : through #44 #

Total comments: 8

Patch Set 7 : through #51 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -414 lines) Patch
M chrome/browser/extensions/extension_creator.cc View 1 2 3 4 5 6 3 chunks +11 lines, -6 lines 0 comments Download
M components/crx_file/BUILD.gn View 1 chunk +4 lines, -2 lines 0 comments Download
A components/crx_file/crx2_file.h View 1 2 1 chunk +76 lines, -0 lines 0 comments Download
A components/crx_file/crx2_file.cc View 1 2 1 chunk +79 lines, -0 lines 0 comments Download
D components/crx_file/crx_file.h View 1 chunk +0 lines, -118 lines 0 comments Download
D components/crx_file/crx_file.cc View 1 chunk +0 lines, -220 lines 0 comments Download
A components/crx_file/crx_verifier.h View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A components/crx_file/crx_verifier.cc View 1 2 3 4 5 1 chunk +171 lines, -0 lines 0 comments Download
M components/update_client/component_unpacker.cc View 1 2 3 chunks +8 lines, -31 lines 0 comments Download
M components/update_client/component_unpacker_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/update_client/update_client_errors.h View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/sandboxed_unpacker.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M extensions/browser/sandboxed_unpacker.cc View 1 2 3 4 5 6 5 chunks +36 lines, -34 lines 0 comments Download
M extensions/browser/sandboxed_unpacker_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 74 (56 generated)
waffles
Sorin, PTAL. In the meantime I think I'll add some tests.
3 years, 7 months ago (2017-05-09 21:41:56 UTC) #10
waffles
Updated the CL after our conversations yesterday.
3 years, 7 months ago (2017-05-10 17:58:17 UTC) #12
Sorin Jianu
Thank you! https://codereview.chromium.org/2874503002/diff/40001/components/crx_file/crx2_file.h File components/crx_file/crx2_file.h (right): https://codereview.chromium.org/2874503002/diff/40001/components/crx_file/crx2_file.h#newcode1 components/crx_file/crx2_file.h:1: // Copyright 2014 The Chromium Authors. All ...
3 years, 7 months ago (2017-05-15 19:49:53 UTC) #28
waffles
https://codereview.chromium.org/2874503002/diff/120001/chrome/browser/extensions/extension_creator.cc File chrome/browser/extensions/extension_creator.cc (right): https://codereview.chromium.org/2874503002/diff/120001/chrome/browser/extensions/extension_creator.cc#newcode255 chrome/browser/extensions/extension_creator.cc:255: crx_file::Crx2File::Error error; On 2017/05/15 19:49:51, Sorin Jianu wrote: > ...
3 years, 7 months ago (2017-05-16 00:29:03 UTC) #30
Sorin Jianu
lgtm ty! https://codereview.chromium.org/2874503002/diff/180001/chrome/browser/extensions/extension_creator.cc File chrome/browser/extensions/extension_creator.cc (right): https://codereview.chromium.org/2874503002/diff/180001/chrome/browser/extensions/extension_creator.cc#newcode17 chrome/browser/extensions/extension_creator.cc:17: #include "base/memory/ptr_util.h" we don't need this anymore ...
3 years, 7 months ago (2017-05-16 20:54:50 UTC) #43
Sorin Jianu
lgtm ty!
3 years, 7 months ago (2017-05-16 20:54:51 UTC) #44
waffles
https://codereview.chromium.org/2874503002/diff/180001/chrome/browser/extensions/extension_creator.cc File chrome/browser/extensions/extension_creator.cc (right): https://codereview.chromium.org/2874503002/diff/180001/chrome/browser/extensions/extension_creator.cc#newcode17 chrome/browser/extensions/extension_creator.cc:17: #include "base/memory/ptr_util.h" On 2017/05/16 20:54:50, Sorin Jianu wrote: > ...
3 years, 7 months ago (2017-05-16 22:34:53 UTC) #46
waffles
+rdevlin.cronin; PTAL at extensions/ and chrome/extensions.
3 years, 7 months ago (2017-05-16 22:36:57 UTC) #49
Sorin Jianu
lgtm ty!
3 years, 7 months ago (2017-05-16 22:38:55 UTC) #50
Devlin
Can you expand the CL description a bit? Some of the changes in extensions land ...
3 years, 7 months ago (2017-05-16 22:55:02 UTC) #51
waffles
https://codereview.chromium.org/2874503002/diff/200001/chrome/browser/extensions/extension_creator.cc File chrome/browser/extensions/extension_creator.cc (right): https://codereview.chromium.org/2874503002/diff/200001/chrome/browser/extensions/extension_creator.cc#newcode256 chrome/browser/extensions/extension_creator.cc:256: auto crx = On 2017/05/16 22:55:02, Devlin (catching up) ...
3 years, 7 months ago (2017-05-17 17:18:22 UTC) #56
Devlin
extensions lgtm
3 years, 7 months ago (2017-05-17 18:17:14 UTC) #58
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/2874503002/220001
3 years, 7 months ago (2017-05-17 22:46:31 UTC) #63
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/440461)
3 years, 7 months ago (2017-05-17 23:31:51 UTC) #65
waffles
Ken, PTAL. (Is there a more current owner, by the way?)
3 years, 7 months ago (2017-05-18 00:14:03 UTC) #67
Ken Rockot(use gerrit already)
On 2017/05/18 at 00:14:03, waffles wrote: > Ken, PTAL. (Is there a more current owner, ...
3 years, 7 months ago (2017-05-19 06:13:22 UTC) #68
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/2874503002/220001
3 years, 7 months ago (2017-05-23 00:07:07 UTC) #70
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 01:46:06 UTC) #74
Message was sent while issue was closed.
Committed patchset #7 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/5918d5fbdda9a61e2b83735975fc...

Powered by Google App Engine
This is Rietveld 408576698