Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(598)

Issue 10666027: Remove inappropriate chrome.{extension,app} bindings for platform apps (Closed)

Created:
8 years, 6 months ago by asargent_no_longer_on_chrome
Modified:
8 years, 5 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Remove inappropriate chrome.{extension,app} bindings for platform apps. Also: -Begin process of moving from chrome.extension.lastError to chrome.runtime.lastError. -Add chrome.runtime.getManifest and chrome.runtime.getURL BUG=131717 TEST=In platform apps, chrome.extension and chrome.app should not contain any extension or legacy hosted app stuff on them. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145238

Patch Set 1 #

Patch Set 2 : improved runtime.getManifest test, and generated docs #

Patch Set 3 : fix merge conflict in patch to restrictions test #

Total comments: 24

Patch Set 4 : changes in response to review comments #

Patch Set 5 : rebased #

Total comments: 12

Patch Set 6 : more review feedback #

Patch Set 7 : rebased against trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+572 lines, -28 lines) Patch
A chrome/browser/extensions/runtime_apitest.cc View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.cc View 1 2 3 4 5 2 chunks +29 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/runtime.json View 1 2 3 2 chunks +70 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/extensions/runtime.html View 1 2 3 4 4 chunks +264 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 3 4 5 6 6 chunks +9 lines, -3 lines 0 comments Download
A chrome/renderer/extensions/runtime_custom_bindings.h View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/runtime_custom_bindings.cc View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_resources.grd View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/apitest.js View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/renderer/resources/extensions/context_menus_custom_bindings.js View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/renderer/resources/extensions/file_system_custom_bindings.js View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
A chrome/renderer/resources/extensions/last_error.js View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/miscellaneous_bindings.js View 1 2 3 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/renderer/resources/extensions/runtime_custom_bindings.js View 1 2 3 2 chunks +14 lines, -2 lines 0 comments Download
M chrome/renderer/resources/extensions/send_request.js View 1 2 3 3 chunks +4 lines, -5 lines 0 comments Download
A chrome/test/data/extensions/api_test/runtime/manifest.json View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/runtime/test.js View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/restrictions/main.js View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/restrictions/manifest.json View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
asargent_no_longer_on_chrome
mihaip: please review whole CL aa, kalman: FYI, drive-bys welcome
8 years, 6 months ago (2012-06-25 18:45:00 UTC) #1
not at google - send to devlin
General wishful thinking comment: if we're deprecating chrome.extension.lastError then ideally we could actually replace it ...
8 years, 6 months ago (2012-06-25 23:35:56 UTC) #2
Mihai Parparita -not on Chrome
LGTM http://codereview.chromium.org/10666027/diff/8001/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): http://codereview.chromium.org/10666027/diff/8001/chrome/common/extensions/api/extension_api.cc#newcode639 chrome/common/extensions/api/extension_api.cc:639: feature_name == "extension") Can this also check for ...
8 years, 6 months ago (2012-06-25 23:45:18 UTC) #3
not at google - send to devlin
http://codereview.chromium.org/10666027/diff/8001/chrome/renderer/resources/extensions/runtime_custom_bindings.js File chrome/renderer/resources/extensions/runtime_custom_bindings.js (right): http://codereview.chromium.org/10666027/diff/8001/chrome/renderer/resources/extensions/runtime_custom_bindings.js#newcode26 chrome/renderer/resources/extensions/runtime_custom_bindings.js:26: return appNatives.GetDetails(); On 2012/06/25 23:35:56, kalman wrote: > Perhaps ...
8 years, 6 months ago (2012-06-25 23:55:11 UTC) #4
Aaron Boodman
On Mon, Jun 25, 2012 at 4:35 PM, <[email protected]> wrote: > General wishful thinking comment: ...
8 years, 6 months ago (2012-06-26 01:27:41 UTC) #5
Mihai Parparita -not on Chrome
On Mon, Jun 25, 2012 at 6:27 PM, Aaron Boodman <[email protected]> wrote: > That said, ...
8 years, 6 months ago (2012-06-26 05:35:15 UTC) #6
Aaron Boodman
On Mon, Jun 25, 2012 at 10:35 PM, Mihai Parparita <[email protected]> wrote: > On Mon, ...
8 years, 6 months ago (2012-06-26 05:55:00 UTC) #7
not at google - send to devlin
http://codereview.chromium.org/10666027/diff/8001/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): http://codereview.chromium.org/10666027/diff/8001/chrome/common/extensions/api/extension_api.cc#newcode602 chrome/common/extensions/api/extension_api.cc:602: ResolveDependencies(&temp_result); if (extension->is_platform_app()) RemoveNonPlatformAppAPIs(&temp_result); http://codereview.chromium.org/10666027/diff/8001/chrome/common/extensions/api/extension_api.cc#newcode637 chrome/common/extensions/api/extension_api.cc:637: // apps pick ...
8 years, 6 months ago (2012-06-26 22:40:30 UTC) #8
asargent_no_longer_on_chrome
Addressed comments - PTAL. Aaron/Mihai - I didn't address the bigger picture question of whether ...
8 years, 5 months ago (2012-06-28 23:10:33 UTC) #9
not at google - send to devlin
lgtm with comments. http://codereview.chromium.org/10666027/diff/13004/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): http://codereview.chromium.org/10666027/diff/13004/chrome/common/extensions/api/extension_api.cc#newcode591 chrome/common/extensions/api/extension_api.cc:591: if (extension && !IsFeatureAllowedForExtension(*i, *extension)) { ...
8 years, 5 months ago (2012-06-29 02:10:28 UTC) #10
asargent_no_longer_on_chrome
Comments addressed, hitting CQ button now. http://codereview.chromium.org/10666027/diff/13004/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): http://codereview.chromium.org/10666027/diff/13004/chrome/common/extensions/api/extension_api.cc#newcode591 chrome/common/extensions/api/extension_api.cc:591: if (extension && ...
8 years, 5 months ago (2012-07-02 17:29:43 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10666027/15010
8 years, 5 months ago (2012-07-02 17:30:05 UTC) #12
commit-bot: I haz the power
Try job failure for 10666027-15010 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 5 months ago (2012-07-02 18:25:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10666027/15010
8 years, 5 months ago (2012-07-02 18:28:51 UTC) #14
commit-bot: I haz the power
Try job failure for 10666027-15010 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 5 months ago (2012-07-02 19:09:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10666027/15010
8 years, 5 months ago (2012-07-02 23:25:43 UTC) #16
commit-bot: I haz the power
8 years, 5 months ago (2012-07-03 01:32:26 UTC) #17
Change committed as 145238

Powered by Google App Engine
This is Rietveld 408576698