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

Issue 855513002: Add/resurrect support for bundles of WebStore items. (Closed)

Created:
5 years, 11 months ago by Marc Treib
Modified:
5 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@testext_bundle
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add/resurrect support for bundles of WebStore items. PRD: https://docs.google.com/document/d/1ISbZTZzHhQv-A49uuY4gy_moJf6agBCvNktPEOYb3Sk DD: https://docs.google.com/document/d/1f8b4jALZ3Z6VcmbzCJnpfZkc2pl8hLdlnkmtWIGiBXU This CL adds a new webstorePrivate API to install a bundle. (A similar API existed in the past, but was removed in https://codereview.chromium.org/673263003/. Tests were removed even earlier in https://chromiumcodereview.appspot.com/15732016/.) It also updates the bundle install logic (which had rotted somewhat). BUG=448724 Committed: https://crrev.com/a21dcd92c7f0f0ffa39e6b0508934aae2875eb17 Cr-Commit-Position: refs/heads/master@{#323627}

Patch Set 1 #

Patch Set 2 : fix for Win #

Patch Set 3 : Mac UI;cleanup #

Patch Set 4 : -UI #

Patch Set 5 : rebase #

Patch Set 6 : cleanup,rebase #

Patch Set 7 : fix Mac; test cleanup #

Patch Set 8 : rebase #

Patch Set 9 : cleanup;rebase #

Total comments: 11

Patch Set 10 : remove bundle id (and rebase) #

Patch Set 11 : rebase onto 931993002 #

Patch Set 12 : remove icon_data #

Total comments: 16

Patch Set 13 : review #

Patch Set 14 : add CRXs #

Total comments: 6

Patch Set 15 : review #

Patch Set 16 : fix BitmapFetcher destruction #

Unified diffs Side-by-side diffs Delta from patch set Stats (+775 lines, -207 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +112 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +50 lines, -0 lines 0 comments Download
M chrome/browser/extensions/bundle_installer.h View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +52 lines, -42 lines 0 comments Download
M chrome/browser/extensions/bundle_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 chunks +77 lines, -84 lines 0 comments Download
M chrome/browser/extensions/extension_install_prompt.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_install_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +11 lines, -18 lines 0 comments Download
M chrome/browser/extensions/webstore_install_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +25 lines, -52 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm View 1 2 3 4 5 6 3 chunks +6 lines, -1 line 0 comments Download
M chrome/common/extensions/api/webstore_private.json View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/bundle/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.crx View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +80 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/webstore_private/bundle/app1.json View 1 chunk +3 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/bundle/app2.json View 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/bundle/begfmnajjkbjdgmffnjaojchoncnmngg.crx View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/bundle/begfmnajjkbjdgmffnjaojchoncnmngg.pem View 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/bundle/bmfoocgfinpmkmlbjhcbofejhkhlbchk.crx View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/bundle/bmfoocgfinpmkmlbjhcbofejhkhlbchk.pem View 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/bundle/extension1.json View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/bundle/extension2.json View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/bundle/mpneghmdnmaolkljkipbhaienajcflfe.crx View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/bundle/mpneghmdnmaolkljkipbhaienajcflfe.pem View 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/bundle/pkapffpjmiilhlhbibjhamlmdhfneidj.crx View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/bundle/pkapffpjmiilhlhbibjhamlmdhfneidj.pem View 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/install_bundle.html View 1 2 3 4 5 6 7 8 9 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/install_bundle_cancel.html View 1 2 3 4 5 6 7 8 9 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/install_bundle_invalid.html View 1 2 3 4 5 6 7 8 9 1 chunk +80 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (4 generated)
Marc Treib
Another new (or rather, resurrected) webstorePrivate API. PTAL!
5 years, 9 months ago (2015-03-02 13:13:40 UTC) #2
not at google - send to devlin
It's probably better for Antony to look at this.
5 years, 9 months ago (2015-03-02 17:48:57 UTC) #4
asargent_no_longer_on_chrome
Sorry to not respond immediately - I'm taking some time to read through the PRD ...
5 years, 9 months ago (2015-03-03 23:08:54 UTC) #5
asargent_no_longer_on_chrome
On 2015/03/03 23:08:54, Antony Sargent wrote: > Sorry to not respond immediately - I'm taking ...
5 years, 9 months ago (2015-03-07 00:59:39 UTC) #6
asargent_no_longer_on_chrome
https://codereview.chromium.org/855513002/diff/160001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/855513002/diff/160001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode612 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:612: return RespondNow(Error(kCannotSpecifyIconDataAndUrlError)); FYI, we're phasing out the icon_data parameter ...
5 years, 9 months ago (2015-03-16 17:48:22 UTC) #7
Marc Treib
https://codereview.chromium.org/855513002/diff/160001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/855513002/diff/160001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode612 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:612: return RespondNow(Error(kCannotSpecifyIconDataAndUrlError)); On 2015/03/16 17:48:22, Antony Sargent wrote: > ...
5 years, 9 months ago (2015-03-17 12:18:27 UTC) #8
Marc Treib
On 2015/03/17 12:18:27, Marc Treib wrote: > https://codereview.chromium.org/855513002/diff/160001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc > File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc > (right): > > ...
5 years, 9 months ago (2015-03-24 14:09:20 UTC) #9
asargent_no_longer_on_chrome
https://codereview.chromium.org/855513002/diff/160001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/855513002/diff/160001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode722 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:722: On 2015/03/17 12:18:26, Marc Treib wrote: > On 2015/03/16 ...
5 years, 9 months ago (2015-03-24 23:34:00 UTC) #10
Marc Treib
https://codereview.chromium.org/855513002/diff/160001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/855513002/diff/160001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode722 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:722: On 2015/03/24 23:34:00, Antony Sargent wrote: > On 2015/03/17 ...
5 years, 9 months ago (2015-03-25 11:21:59 UTC) #11
Marc Treib
Next try :) PTAL again! https://codereview.chromium.org/855513002/diff/160001/chrome/browser/extensions/webstore_install_helper.cc File chrome/browser/extensions/webstore_install_helper.cc (right): https://codereview.chromium.org/855513002/diff/160001/chrome/browser/extensions/webstore_install_helper.cc#newcode85 chrome/browser/extensions/webstore_install_helper.cc:85: if (!manifest_.empty()) On 2015/03/25 ...
5 years, 9 months ago (2015-03-26 15:49:26 UTC) #12
asargent_no_longer_on_chrome
Ok, getting close! Just a few nits and some possible object lifetime issues to fix. ...
5 years, 9 months ago (2015-03-26 18:12:51 UTC) #13
Marc Treib
Thanks for your comments - looks like I still have lots to learn about object ...
5 years, 9 months ago (2015-03-27 11:52:13 UTC) #14
asargent_no_longer_on_chrome
https://codereview.chromium.org/855513002/diff/220001/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc File chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc (right): https://codereview.chromium.org/855513002/diff/220001/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc#newcode454 chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc:454: ASSERT_TRUE(base::DeleteFile(test_crx_[i], false)); On 2015/03/27 11:52:12, Marc Treib wrote: > ...
5 years, 9 months ago (2015-03-27 23:38:27 UTC) #15
Marc Treib
https://codereview.chromium.org/855513002/diff/220001/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc File chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc (right): https://codereview.chromium.org/855513002/diff/220001/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc#newcode454 chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc:454: ASSERT_TRUE(base::DeleteFile(test_crx_[i], false)); On 2015/03/27 23:38:27, Antony Sargent wrote: > ...
5 years, 8 months ago (2015-03-30 08:52:17 UTC) #16
asargent_no_longer_on_chrome
Ok, glad it worked out with the test files! lgtm
5 years, 8 months ago (2015-03-30 17:47:30 UTC) #17
asargent_no_longer_on_chrome
On 2015/03/30 17:47:30, Antony Sargent wrote: > Ok, glad it worked out with the test ...
5 years, 8 months ago (2015-03-30 17:49:13 UTC) #18
Marc Treib
+thestig for OWNERS approval for the new c/b/safe_image_fetcher.* (reviewed by asargent already), as well as ...
5 years, 8 months ago (2015-03-31 09:13:21 UTC) #20
Lei Zhang
I put the review extension_installed_bubble_controller.mm back to the extensions folks. https://codereview.chromium.org/855513002/diff/260001/chrome/browser/safe_image_fetcher.cc File chrome/browser/safe_image_fetcher.cc (right): https://codereview.chromium.org/855513002/diff/260001/chrome/browser/safe_image_fetcher.cc#newcode47 ...
5 years, 8 months ago (2015-03-31 09:39:09 UTC) #21
Lei Zhang
On 2015/03/31 09:39:09, Lei Zhang wrote: > I put the review extension_installed_bubble_controller.mm back to the ...
5 years, 8 months ago (2015-03-31 09:39:22 UTC) #22
Marc Treib
re extension_installed_bubble_controller.mm: Turns out the extension folks don't own the c/b/ui/cocoa/extensions/ folder. asargent, have you ...
5 years, 8 months ago (2015-03-31 12:48:22 UTC) #23
Lei Zhang
I think asargent should take a look again. Happy to rubber stamp the .grd file ...
5 years, 8 months ago (2015-04-01 03:10:01 UTC) #24
asargent_no_longer_on_chrome
new version lgtm for the file "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm" I guess you technically should get a review ...
5 years, 8 months ago (2015-04-01 17:43:14 UTC) #25
Marc Treib
On 2015/04/01 17:43:14, Antony Sargent wrote: > new version lgtm > > for the file ...
5 years, 8 months ago (2015-04-02 08:54:57 UTC) #26
Lei Zhang
lgtm
5 years, 8 months ago (2015-04-02 18:06:14 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/855513002/300001
5 years, 8 months ago (2015-04-02 18:07:30 UTC) #29
commit-bot: I haz the power
Committed patchset #16 (id:300001)
5 years, 8 months ago (2015-04-03 05:27:16 UTC) #30
commit-bot: I haz the power
5 years, 8 months ago (2015-04-03 20:32:23 UTC) #31
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/a21dcd92c7f0f0ffa39e6b0508934aae2875eb17
Cr-Commit-Position: refs/heads/master@{#323627}

Powered by Google App Engine
This is Rietveld 408576698