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

Issue 3381019: Add a launchApp method to extension management API.... (Closed)

Created:
10 years, 3 months ago by asargent_no_longer_on_chrome
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Add a launchApp method to extension management API. This makes it possible for new tab replacement extensions to recreate the same app launch experience as the built-in NTP (pinned tabs, launch containers, etc.) Also add the extension version to data we report about extensions via the management API. BUG=56325, 55474 TEST=An extension using chrome.experimental.management.launchApp(<id>) should work to launch an app the same way that app gets launched from the built-in new tab page. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60334

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -2 lines) Patch
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_management_api.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management_api.cc View 1 3 chunks +24 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_management_api_browsertest.cc View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/experimental.management.html View 1 2 3 3 chunks +240 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/management/launch_app/background.html View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/management/launch_app/manifest.json View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/management/launch_app/test.js View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/management/packaged_app/main.html View 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/management/packaged_app/manifest.json View 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/management/simple_extension/manifest.json View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
asargent_no_longer_on_chrome
http://codereview.chromium.org/3381019/diff/1/2 File chrome/browser/extensions/extension_function_dispatcher.cc (left): http://codereview.chromium.org/3381019/diff/1/2#oldcode277 chrome/browser/extensions/extension_function_dispatcher.cc:277: RegisterFunction<InstallFunction>(); FYI, "InstallFunction" used to be a part of ...
10 years, 3 months ago (2010-09-23 00:11:30 UTC) #1
Erik does not do reviews
LGTM Didn't you say that your change needed NTP changes as well? Also update the ...
10 years, 3 months ago (2010-09-23 00:42:16 UTC) #2
asargent_no_longer_on_chrome
10 years, 3 months ago (2010-09-23 18:30:54 UTC) #3
[final upload responding to comments, will submit after try runs come back]


> Didn't you say that your change needed NTP changes as well?

At first glance I thought I was going to need to, but when I looked at it
closer, it turned out I didn't need to.

http://codereview.chromium.org/3381019/diff/13001/14004
File chrome/browser/extensions/extension_management_api_browsertest.cc (right):

http://codereview.chromium.org/3381019/diff/13001/14004#newcode32
chrome/browser/extensions/extension_management_api_browsertest.cc:32:
IN_PROC_BROWSER_TEST_F(ExtensionManagementApiBrowserTest, LaunchApp) {
On 2010/09/23 00:42:17, Erik Kay wrote:
> maybe verify the error when launching a non-app?

Done.

http://codereview.chromium.org/3381019/diff/13001/14005
File chrome/common/extensions/api/extension_api.json (right):

http://codereview.chromium.org/3381019/diff/13001/14005#newcode3943
chrome/common/extensions/api/extension_api.json:3943: "description": "The
version of this extension.",
On 2010/09/23 00:42:17, Erik Kay wrote:
> maybe link to the version format docs

Done.

Powered by Google App Engine
This is Rietveld 408576698