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

Issue 10834261: Move chrome.experimental.app.onLaunched event handler to chrome.app.runtime.onLaunched. (Closed)

Created:
8 years, 4 months ago by miu
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, kinuko+watch, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, Mihai Parparita -not on Chrome
Visibility:
Public.

Description

Move chrome.experimental.app.onLaunched event handler to chrome.app.runtime.onLaunched. Other: 1) Made the "api.runtime" permission set implicitly (i.e., it is not required in an app's manifest.json). 2) Updated tests and regenerated docs. BUG=139253 NOTRY=true TBR=brettw@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151580

Patch Set 1 #

Patch Set 2 : Synced/merged, resolved conflicts. #

Total comments: 2

Patch Set 3 : Translated interface definition into IDL (was JSON). Documentation fixes. #

Total comments: 1

Patch Set 4 : Add reference to bug 142540 in TODO comments. #

Patch Set 5 : Fixing a presubmit error after last merge. #

Patch Set 6 : Replace TODOs with helpful comments since bug 142540 is a WontFix. #

Patch Set 7 : Attempt to fix malformed path (moar auto-generated docs fixes). #

Patch Set 8 : Another merge before retrying commit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -1309 lines) Patch
M chrome/browser/extensions/api/app/app_api.h View 2 chunks +0 lines, -47 lines 0 comments Download
M chrome/browser/extensions/api/app/app_api.cc View 1 3 chunks +0 lines, -75 lines 0 comments Download
A + chrome/browser/extensions/api/app_runtime/app_runtime_api.h View 3 chunks +4 lines, -23 lines 0 comments Download
A + chrome/browser/extensions/api/app_runtime/app_runtime_api.cc View 1 2 3 4 5 4 chunks +9 lines, -98 lines 0 comments Download
M chrome/browser/extensions/platform_app_launcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/app_runtime.idl View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/experimental_app.json View 1 chunk +0 lines, -43 lines 0 comments Download
M chrome/common/extensions/docs/apps/api_index.html View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/common/extensions/docs/apps/app.runtime.html View 1 2 9 chunks +26 lines, -23 lines 0 comments Download
M chrome/common/extensions/docs/apps/app_external.html View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/apps/app_intents.html View 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/common/extensions/docs/apps/app_lifecycle.html View 3 chunks +3 lines, -3 lines 0 comments Download
D chrome/common/extensions/docs/apps/experimental.app.html View 1 chunk +0 lines, -446 lines 0 comments Download
M chrome/common/extensions/docs/apps/first_app.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/extensions/experimental.app.html View 2 chunks +1 line, -208 lines 0 comments Download
M chrome/common/extensions/docs/extensions/samples.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/js/api_page_generator.js View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/templates/articles/app_external.html View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/templates/articles/app_intents.html View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/common/extensions/docs/server2/templates/articles/app_lifecycle.html View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/extensions/docs/server2/templates/articles/first_app.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/static/app_external.html View 1 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/common/extensions/docs/static/app_intents.html View 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/common/extensions/docs/static/app_lifecycle.html View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/extensions/docs/static/first_app.html View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/extensions/permissions/api_permission.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/renderer/extensions/app_runtime_custom_bindings.h View 1 chunk +23 lines, -0 lines 0 comments Download
A + chrome/renderer/extensions/app_runtime_custom_bindings.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 5 chunks +4 lines, -5 lines 0 comments Download
D chrome/renderer/extensions/experimental.app_custom_bindings.h View 1 chunk +0 lines, -19 lines 0 comments Download
D chrome/renderer/extensions/experimental.app_custom_bindings.cc View 1 chunk +0 lines, -53 lines 0 comments Download
M chrome/renderer/renderer_resources.grd View 2 chunks +1 line, -1 line 0 comments Download
A + chrome/renderer/resources/extensions/app_runtime_custom_bindings.js View 1 chunk +3 lines, -3 lines 0 comments Download
D chrome/renderer/resources/extensions/experimental.app_custom_bindings.js View 1 chunk +0 lines, -62 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/get_display_path/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/get_display_path/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/get_display_path_prettify/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/get_display_path_prettify/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/get_writable_file_entry/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/get_writable_file_entry/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/get_writable_file_entry_with_write/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/get_writable_file_entry_with_write/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/invalid_choose_file_type/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/invalid_choose_file_type/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/open_cancel/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/open_cancel/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/open_existing/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/open_existing/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/open_existing_with_write/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/open_existing_with_write/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/open_writable_existing/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/open_writable_existing/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/open_writable_existing_with_write/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/open_writable_existing_with_write/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/save_cancel/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/save_cancel/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/save_existing/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/save_existing/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/save_existing_with_write/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/save_existing_with_write/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/save_new/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/save_new/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/save_new_with_write/background.js View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/save_new_with_write/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/browser_tag/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/browser_tag/test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/browser_tag_isolation/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/browser_tag_isolation/test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/context_menu/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/context_menu/test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/get_display_path/manifest.json View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/get_display_path/test.js View 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/iframes/manifest.json View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/iframes/test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/launch/manifest.json View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/launch/test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/launch_2/manifest.json View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/launch_2/test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/launch_file/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/launch_file/test.js View 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/launch_invalid/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/launch_invalid/test.js View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/launch_no_intent/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/launch_no_intent/test.js View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/launch_nothing/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/launch_nothing/test.js View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/launch_wrong_intent/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/launch_wrong_intent/test.js View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/launch_wrong_type/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/launch_wrong_type/test.js View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/minimal/manifest.json View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/minimal/test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/navigation/manifest.json View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/navigation/test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/open_link/manifest.json View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/open_link/test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/restrictions/manifest.json View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/restrictions/test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/windows_api/manifest.json View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/windows_api/test.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (0 generated)
Alpha Left Google
8 years, 4 months ago (2012-08-09 22:08:54 UTC) #1
Mihai Parparita -not on Chrome
Antony, do you mind taking this review?
8 years, 4 months ago (2012-08-09 22:13:52 UTC) #2
asargent_no_longer_on_chrome
sure, I'll take a look
8 years, 4 months ago (2012-08-09 22:17:22 UTC) #3
asargent_no_longer_on_chrome
https://chromiumcodereview.appspot.com/10834261/diff/4002/chrome/common/extensions/api/app_runtime.json File chrome/common/extensions/api/app_runtime.json (right): https://chromiumcodereview.appspot.com/10834261/diff/4002/chrome/common/extensions/api/app_runtime.json#newcode7 chrome/common/extensions/api/app_runtime.json:7: "namespace":"app.runtime", nit: can you put this in an IDL ...
8 years, 4 months ago (2012-08-10 00:09:10 UTC) #4
miu
Changes done (now via IDL). BTW--Was I correct to assume the chrome.app.runtime API should be ...
8 years, 4 months ago (2012-08-10 02:34:18 UTC) #5
asargent_no_longer_on_chrome
LGTM w/ one nit I talked with Mihai, and we think it's fine to leave ...
8 years, 4 months ago (2012-08-10 18:43:58 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/10834261/1007
8 years, 4 months ago (2012-08-14 04:09:43 UTC) #7
miu
On 2012/08/10 18:43:58, Antony Sargent wrote: > chrome/browser/extensions/api/app_runtime/app_runtime_api.cc:50: // > nit: can you make sure ...
8 years, 4 months ago (2012-08-14 04:10:43 UTC) #8
commit-bot: I haz the power
Presubmit check for 10834261-1007 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-14 04:11:33 UTC) #9
miu
kalman@, I need your LGTM for the change to this file: chrome/chrome_renderer.gypi Thanks, Yuri
8 years, 4 months ago (2012-08-14 04:44:42 UTC) #10
Mihai Parparita -not on Chrome
Ben isn't actually an OWNER for that directory, see http://src.chromium.org/viewvc/chrome/trunk/src/chrome/OWNERS for who you need to ...
8 years, 4 months ago (2012-08-14 04:55:34 UTC) #11
not at google - send to devlin
Yeah I'm not a chrome owner, and if it's just a gyp change you can ...
8 years, 4 months ago (2012-08-14 04:58:47 UTC) #12
miu
brettw@, I added you as a TBR reviewer since I'm changing the following file: chrome/chrome_renderer.gypi ...
8 years, 4 months ago (2012-08-14 05:09:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/10834261/10231
8 years, 4 months ago (2012-08-14 05:10:17 UTC) #14
commit-bot: I haz the power
Presubmit check for 10834261-10231 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-14 05:11:32 UTC) #15
not at google - send to devlin
That presubmit check was supposed to be disabled but the patch which happened to disable ...
8 years, 4 months ago (2012-08-14 05:14:21 UTC) #16
miu
On 2012/08/14 05:14:21, kalman wrote: > That presubmit check was supposed to be disabled but ...
8 years, 4 months ago (2012-08-14 05:19:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/10834261/10231
8 years, 4 months ago (2012-08-14 05:19:57 UTC) #18
commit-bot: I haz the power
Try job failure for 10834261-10231 on mac_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=47498 Step "update" is always ...
8 years, 4 months ago (2012-08-14 05:23:02 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/10834261/10231
8 years, 4 months ago (2012-08-14 05:25:43 UTC) #20
commit-bot: I haz the power
Try job failure for 10834261-10231 on linux_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=47218 Step "update" is always ...
8 years, 4 months ago (2012-08-14 05:26:59 UTC) #21
not at google - send to devlin
Ok, some malformed patch failure that could be subversion related? Possibly, maybe related to the ...
8 years, 4 months ago (2012-08-14 05:36:46 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/10834261/11006
8 years, 4 months ago (2012-08-14 05:38:59 UTC) #23
miu
I think I fixed the patch problem. At least, the builds are now reaching the ...
8 years, 4 months ago (2012-08-14 05:43:43 UTC) #24
commit-bot: I haz the power
Try job failure for 10834261-11006 (retry) on linux_chromeos for step "browser_tests". It's a second try, ...
8 years, 4 months ago (2012-08-14 09:10:39 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/10834261/13006
8 years, 4 months ago (2012-08-14 16:43:42 UTC) #26
commit-bot: I haz the power
Try job failure for 10834261-13006 (retry) on linux_chromeos for step "browser_tests". It's a second try, ...
8 years, 4 months ago (2012-08-14 21:07:12 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/10834261/13006
8 years, 4 months ago (2012-08-14 22:11:14 UTC) #28
commit-bot: I haz the power
Change committed as 151580
8 years, 4 months ago (2012-08-14 22:13:02 UTC) #29
Mihai Parparita -not on Chrome
8 years, 4 months ago (2012-08-14 22:28:07 UTC) #30
This isn't test flakiness, the failures are legitimate:

[25921:25921:0814/131403:3872586484:ERROR:extension_error_reporter.cc(56)]
Extension error: Could not load extension from
'/mnt/scratch0/b_used/build/slave/linux_chromeos/build/src/chrome/test/data/extensions/platform_apps/launch_2'.
Manifest is not valid JSON.  Line: 10, column: 2, Trailing comma not
allowed.

You left a trailing comma in
https://chromiumcodereview.appspot.com/10834261/diff/13006/chrome/test/data/e...

Mihai

On Tue, Aug 14, 2012 at 3:11 PM, <commit-bot@chromium.org> wrote:

> CQ is trying da patch. Follow status at
>
https://chromium-status.**appspot.com/cq/miu@chromium.**org/10834261/13006<ht...
>
>
>
https://chromiumcodereview.**appspot.com/10834261/<https://chromiumcodereview...
>

Powered by Google App Engine
This is Rietveld 408576698