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

Issue 10750010: Add an installType property to the management API (Closed)

Created:
8 years, 5 months ago by mitchellwrosen
Modified:
8 years, 4 months ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add an installType property to the management API Mapping from extension.location(): INTERNAL -> 'normal' LOAD -> 'development' EXTERNAL_POLICY_DOWNLOAD -> 'admin' EXTERNAL* -> 'sideload' (all others) -> 'other' BUG=135564 TBR=jam@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149767

Patch Set 1 #

Total comments: 2

Patch Set 2 : Test added (finally!) #

Total comments: 6

Patch Set 3 : Added location param to InstallExtension, rewrote test #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : Trunk sync #

Patch Set 6 : Forgot to remove param from LoadExtensionWithOptions (sorry) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -1953 lines) Patch
A + chrome/browser/extensions/api/management/management_api.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/extensions/api/management/management_api.cc View 1 2 3 4 3 chunks +23 lines, -2 lines 0 comments Download
A + chrome/browser/extensions/api/management/management_api_browsertest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/browser/extensions/api/management/management_api_constants.h View 1 3 chunks +11 lines, -3 lines 0 comments Download
A + chrome/browser/extensions/api/management/management_api_constants.cc View 1 3 chunks +8 lines, -1 line 0 comments Download
A + chrome/browser/extensions/api/management/management_apitest.cc View 1 2 4 chunks +34 lines, -14 lines 0 comments Download
A + chrome/browser/extensions/api/management/management_browsertest.cc View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/extensions/extension_apitest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.h View 1 2 3 4 5 chunks +30 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 3 4 5 5 chunks +26 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_function_registry.cc View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
D chrome/browser/extensions/extension_management_api.h View 1 1 chunk +0 lines, -162 lines 0 comments Download
D chrome/browser/extensions/extension_management_api.cc View 1 2 3 4 1 chunk +0 lines, -595 lines 0 comments Download
D chrome/browser/extensions/extension_management_api_browsertest.cc View 1 2 3 4 1 chunk +0 lines, -202 lines 0 comments Download
D chrome/browser/extensions/extension_management_api_constants.h View 1 1 chunk +0 lines, -39 lines 0 comments Download
M chrome/browser/extensions/extension_management_api_constants.cc View 1 1 chunk +0 lines, -37 lines 0 comments Download
D chrome/browser/extensions/extension_management_apitest.cc View 1 1 chunk +0 lines, -241 lines 0 comments Download
D chrome/browser/extensions/extension_management_browsertest.cc View 1 2 3 4 1 chunk +0 lines, -621 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/management.json View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_file_util.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/management/admin_extension/manifest.json View 1 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/management/external_extension/manifest.json View 1 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/management/internal_extension/manifest.json View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/management/test/basics.js View 1 1 chunk +17 lines, -9 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
mitchellwrosen
8 years, 5 months ago (2012-07-09 19:58:24 UTC) #1
Aaron Boodman
Seems good to me. Antony should do this review. http://codereview.chromium.org/10750010/diff/1/chrome/common/extensions/api/management.json File chrome/common/extensions/api/management.json (right): http://codereview.chromium.org/10750010/diff/1/chrome/common/extensions/api/management.json#newcode103 chrome/common/extensions/api/management.json:103: ...
8 years, 5 months ago (2012-07-10 22:19:14 UTC) #2
mitchellwrosen
Ping, because I'm not sure that Antony Sargent got an email about this one. Thanks ...
8 years, 5 months ago (2012-07-11 18:41:23 UTC) #3
asargent_no_longer_on_chrome
Can you add tests of the other install types besides just development? Also, do we ...
8 years, 5 months ago (2012-07-11 20:49:55 UTC) #4
mitchellwrosen
On 2012/07/11 20:49:55, Antony Sargent wrote: > Can you add tests of the other install ...
8 years, 5 months ago (2012-07-23 18:26:25 UTC) #5
Aaron Boodman
On 2012/07/11 20:49:55, Antony Sargent wrote: > Also, do we want to try to draw ...
8 years, 5 months ago (2012-07-23 23:47:09 UTC) #6
mitchellwrosen
Sorry this took so long. A combination of working on a million things at once, ...
8 years, 4 months ago (2012-07-31 18:05:41 UTC) #7
asargent_no_longer_on_chrome
LGTM assuming you fix the 2 issues mentioned in comments http://codereview.chromium.org/10750010/diff/7001/chrome/browser/extensions/api/management/management_apitest.cc File chrome/browser/extensions/api/management/management_apitest.cc (right): http://codereview.chromium.org/10750010/diff/7001/chrome/browser/extensions/api/management/management_apitest.cc#newcode82 ...
8 years, 4 months ago (2012-07-31 19:55:52 UTC) #8
mitchellwrosen
http://codereview.chromium.org/10750010/diff/7001/chrome/browser/extensions/api/management/management_apitest.cc File chrome/browser/extensions/api/management/management_apitest.cc (right): http://codereview.chromium.org/10750010/diff/7001/chrome/browser/extensions/api/management/management_apitest.cc#newcode82 chrome/browser/extensions/api/management/management_apitest.cc:82: //ASSERT_TRUE(extension); On 2012/07/31 19:55:53, Antony Sargent wrote: > nit: ...
8 years, 4 months ago (2012-07-31 21:48:48 UTC) #9
asargent_no_longer_on_chrome
http://codereview.chromium.org/10750010/diff/7001/chrome/browser/extensions/api/management/management_apitest.cc File chrome/browser/extensions/api/management/management_apitest.cc (right): http://codereview.chromium.org/10750010/diff/7001/chrome/browser/extensions/api/management/management_apitest.cc#newcode82 chrome/browser/extensions/api/management/management_apitest.cc:82: //ASSERT_TRUE(extension); On 2012/07/31 21:48:48, mitchellwrosen wrote: > On 2012/07/31 ...
8 years, 4 months ago (2012-07-31 22:33:00 UTC) #10
mitchellwrosen
On 2012/07/31 22:33:00, Antony Sargent wrote: > http://codereview.chromium.org/10750010/diff/7001/chrome/browser/extensions/api/management/management_apitest.cc > File chrome/browser/extensions/api/management/management_apitest.cc (right): > > http://codereview.chromium.org/10750010/diff/7001/chrome/browser/extensions/api/management/management_apitest.cc#newcode82 ...
8 years, 4 months ago (2012-07-31 22:34:51 UTC) #11
mitchellwrosen
> > I think the right way to do this is to add the ability ...
8 years, 4 months ago (2012-08-01 18:05:44 UTC) #12
asargent_no_longer_on_chrome
Hmm, interesting conundrum. Would it work better if you instead added the ability to specify ...
8 years, 4 months ago (2012-08-01 21:41:31 UTC) #13
mitchellwrosen
8 years, 4 months ago (2012-08-02 00:35:06 UTC) #14
asargent_no_longer_on_chrome
LGTM, and thanks for taking the time to find the right approach. Sorry it was ...
8 years, 4 months ago (2012-08-02 21:28:07 UTC) #15
mitchellwrosen
https://chromiumcodereview.appspot.com/10750010/diff/13002/chrome/browser/extensions/extension_browsertest.h File chrome/browser/extensions/extension_browsertest.h (right): https://chromiumcodereview.appspot.com/10750010/diff/13002/chrome/browser/extensions/extension_browsertest.h#newcode70 chrome/browser/extensions/extension_browsertest.h:70: // specified. Intended to be used only in tests. ...
8 years, 4 months ago (2012-08-02 21:31:04 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mitchellwrosen@chromium.org/10750010/13004
8 years, 4 months ago (2012-08-02 21:31:15 UTC) #17
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_function_registry.cc: While running patch -p1 --forward --force; patching file chrome/browser/extensions/extension_function_registry.cc ...
8 years, 4 months ago (2012-08-02 21:31:35 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mitchellwrosen@chromium.org/10750010/11038
8 years, 4 months ago (2012-08-02 22:12:39 UTC) #19
commit-bot: I haz the power
Try job failure for 10750010-11038 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-02 22:45:35 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mitchellwrosen@chromium.org/10750010/15034
8 years, 4 months ago (2012-08-02 23:27:45 UTC) #21
commit-bot: I haz the power
8 years, 4 months ago (2012-08-03 01:13:59 UTC) #22
Change committed as 149767

Powered by Google App Engine
This is Rietveld 408576698