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

Issue 3353015: Implement gallery install API (Closed)

Created:
10 years, 3 months ago by rafaelw
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, ben+cc_chromium.org, Erik does not do reviews, Aaron Boodman, arv (Not doing code reviews), pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Implement gallery install API This patch implements chrome.experimental.management.install() which is only available for use by the web store. Calling with an extensionId, causes the download url to be constructed internally and downloaded and then cause the installation to bypass the normal permissions dialog. BUG=27431, 54148 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=58956

Patch Set 1 #

Total comments: 32

Patch Set 2 : cr changes #

Patch Set 3 : minor clean-up #

Total comments: 14

Patch Set 4 : pawel comments, moved impl to webstorePrivate #

Total comments: 2

Patch Set 5 : erik comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -69 lines) Patch
M chrome/browser/download/download_util.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/crx_installer.h View 1 2 3 4 3 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 4 chunks +41 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_apitest.h View 2 3 4 1 chunk +10 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_apitest.cc View 1 2 3 4 1 chunk +40 lines, -19 lines 0 comments Download
A chrome/browser/extensions/extension_gallery_install_apitest.cc View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management_api.h View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_management_api.cc View 1 2 3 5 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_webstore_private_api.h View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_webstore_private_api.cc View 1 chunk +56 lines, -1 line 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/webstore_app/manifest.json View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 2 chunks +17 lines, -23 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/extension_gallery_install/test.html View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
M net/tools/testserver/testserver.py View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
rafaelw
Pawel: please review changes to testserver.py. Note that in addition to adding the crx mime-type, ...
10 years, 3 months ago (2010-09-07 21:57:04 UTC) #1
Carl Nygaard
LGTM Nothing big. The URL generation seems fine to me. I'll leave it to Erik ...
10 years, 3 months ago (2010-09-08 00:01:20 UTC) #2
Erik does not do reviews
http://codereview.chromium.org/3353015/diff/1/2 File chrome/browser/extensions/crx_installer.cc (right): http://codereview.chromium.org/3353015/diff/1/2#newcode103 chrome/browser/extensions/crx_installer.cc:103: FROM_HERE,NewRunnableFunction(CrxInstaller::ClearWhitelistedInstallId)); nit: space after comma http://codereview.chromium.org/3353015/diff/1/3 File chrome/browser/extensions/crx_installer.h (right): ...
10 years, 3 months ago (2010-09-08 00:42:24 UTC) #3
rafaelw
http://codereview.chromium.org/3353015/diff/1/2 File chrome/browser/extensions/crx_installer.cc (right): http://codereview.chromium.org/3353015/diff/1/2#newcode103 chrome/browser/extensions/crx_installer.cc:103: FROM_HERE,NewRunnableFunction(CrxInstaller::ClearWhitelistedInstallId)); On 2010/09/08 00:01:20, Carl Nygaard wrote: > Want ...
10 years, 3 months ago (2010-09-08 01:25:05 UTC) #4
Paweł Hajdan Jr.
http://codereview.chromium.org/3353015/diff/17001/18005 File chrome/browser/extensions/extension_gallery_install_apitest.cc (right): http://codereview.chromium.org/3353015/diff/17001/18005#newcode15 chrome/browser/extensions/extension_gallery_install_apitest.cc:15: CommandLine* command_line) { nit: Why weird indentation? http://codereview.chromium.org/3353015/diff/17001/18005#newcode24 chrome/browser/extensions/extension_gallery_install_apitest.cc:24: ...
10 years, 3 months ago (2010-09-08 17:56:27 UTC) #5
rafaelw
Addressed Pawel's comments. Also moved install to webstorePrivate per offline discussion with erikkay & aa. ...
10 years, 3 months ago (2010-09-08 19:37:42 UTC) #6
Paweł Hajdan Jr.
Test code LGTM.
10 years, 3 months ago (2010-09-08 20:03:21 UTC) #7
Erik does not do reviews
http://codereview.chromium.org/3353015/diff/1/3 File chrome/browser/extensions/crx_installer.h (right): http://codereview.chromium.org/3353015/diff/1/3#newcode53 chrome/browser/extensions/crx_installer.h:53: static void SetWhitelistedInstallId(const std::string& id); I mean that you ...
10 years, 3 months ago (2010-09-08 23:52:02 UTC) #8
rafaelw
http://codereview.chromium.org/3353015/diff/1/3 File chrome/browser/extensions/crx_installer.h (right): http://codereview.chromium.org/3353015/diff/1/3#newcode53 chrome/browser/extensions/crx_installer.h:53: static void SetWhitelistedInstallId(const std::string& id); On 2010/09/08 23:52:02, Erik ...
10 years, 3 months ago (2010-09-09 01:39:49 UTC) #9
Erik does not do reviews
10 years, 3 months ago (2010-09-09 17:22:21 UTC) #10
LGTM - thanks!

Powered by Google App Engine
This is Rietveld 408576698