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

Issue 16191003: Add enable-app-shims to chrome://flags. (Closed)

Created:
7 years, 6 months ago by jackhou1
Modified:
7 years, 6 months ago
Reviewers:
tapted, Dan Beam
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org, arv+watch_chromium.org, pedrosimonetti+watch_chromium.org
Visibility:
Public.

Description

Add enable-app-shims to chrome://flags. Adds a flag --enable-app-shims. This is passed through to the new tab page and enables the "Create shortcut" context menu option on Mac. This flag will be used in future to gate creation of app shim bundles and starting them when the app launches. BUG=168080 TEST=Go to the new tab page. Right click a packaged app. There should be no option to create shortcut. Go to chrome:flags and enable "Enable packaged app shortcuts". Now the create shortcut option should be available. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203363

Patch Set 1 #

Total comments: 4

Patch Set 2 : Pass --enable-app-shims through to NPT #

Total comments: 3

Patch Set 3 : Use ntp_resource_cache to put flag into loadTimeData. #

Patch Set 4 : Sync and rebase #

Patch Set 5 : Need #if defined(OS_MACOSX) in ntp_resource_cache.cc #

Total comments: 4

Patch Set 6 : Update comment in apps_page.js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -4 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp4/apps_page.js View 1 2 3 4 5 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jackhou1
7 years, 6 months ago (2013-05-29 07:50:07 UTC) #1
tapted
looks good. but I'm nervous about whether the way the flag is described here will ...
7 years, 6 months ago (2013-05-29 08:07:36 UTC) #2
jackhou1
PTAL Oops, patch description should say NTP. https://codereview.chromium.org/16191003/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/16191003/diff/1/chrome/app/generated_resources.grd#newcode7211 chrome/app/generated_resources.grd:7211: + Enable ...
7 years, 6 months ago (2013-05-30 04:43:17 UTC) #3
tapted
+chrome-apps-syd-reviews. But, since the initial files have changed from the initial upload, you're missing a ...
7 years, 6 months ago (2013-05-30 05:32:24 UTC) #4
jackhou1
On 2013/05/30 05:32:24, tapted wrote: > +chrome-apps-syd-reviews. But, since the initial files have changed from ...
7 years, 6 months ago (2013-05-30 06:06:38 UTC) #5
tapted
cool - lgtm you'll need to rebase for that other, recent chrome://flag change that landed ...
7 years, 6 months ago (2013-05-30 07:05:13 UTC) #6
jackhou1
dbeam, could you please review for OWNERS in chrome/browser/?
7 years, 6 months ago (2013-05-30 07:48:24 UTC) #7
Dan Beam
please update the CL description to include that you're enabling this "create shortcut" option on ...
7 years, 6 months ago (2013-05-30 22:19:25 UTC) #8
jackhou1
https://codereview.chromium.org/16191003/diff/21001/chrome/browser/resources/ntp4/apps_page.js File chrome/browser/resources/ntp4/apps_page.js (left): https://codereview.chromium.org/16191003/diff/21001/chrome/browser/resources/ntp4/apps_page.js#oldcode143 chrome/browser/resources/ntp4/apps_page.js:143: if (this.createShortcut_ && cr.isMac) { On 2013/05/30 22:19:25, Dan ...
7 years, 6 months ago (2013-05-30 23:07:18 UTC) #9
Dan Beam
lgtm
7 years, 6 months ago (2013-05-30 23:12:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/16191003/30001
7 years, 6 months ago (2013-05-30 23:24:45 UTC) #11
commit-bot: I haz the power
7 years, 6 months ago (2013-05-31 07:47:06 UTC) #12
Message was sent while issue was closed.
Change committed as 203363

Powered by Google App Engine
This is Rietveld 408576698