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

Issue 1300763002: Add a flag to enable open in window for hosted apps on Mac. (Closed)

Created:
5 years, 4 months ago by dominickn
Modified:
5 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, Matt Giuca, tfarina, tapted, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@disable-new-bookmark-apps
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a flag to enable open in window for hosted apps on Mac. Thie CL adds --[enable|disable]-hosted-apps-in-windows, which controls whether or not open in windows is allowed for hosted apps. The flag allows us to fix several outstanding issues with hosted apps on Mac before enabling open in windows by default. BUG=517682 Committed: https://crrev.com/2b10cbd741f3d355186d28bf048cefda6706e297 Cr-Commit-Position: refs/heads/master@{#344406}

Patch Set 1 #

Patch Set 2 : Add to about/flags #

Patch Set 3 : LoginCustomFlags #

Patch Set 4 : Rebase #

Patch Set 5 : Consistent comments #

Patch Set 6 : Fixing a broken test on Mac #

Patch Set 7 : Clarifying logic for open in window #

Total comments: 6

Patch Set 8 : Hide open as window checkbox in bookmark app bubble #

Patch Set 9 : Addressing reviewer feedback #

Total comments: 3

Patch Set 10 : Fix launch type logic #

Patch Set 11 : Launch logic in app info summary panel #

Total comments: 11

Patch Set 12 : Addressing reviewer feedback #

Total comments: 1

Patch Set 13 : Addressing nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -21 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/management/chrome_management_api_delegate.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/management/chrome_management_api_delegate.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_util.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_util.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/launch_util.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/app_context_menu.cc View 1 2 3 4 5 6 7 8 9 1 chunk +15 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_summary_panel.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -7 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/management/test/launchType.js View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/api/management/management_api.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -4 lines 0 comments Download
M extensions/browser/api/management/management_api_delegate.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 22 (5 generated)
dominickn
PTAL, thanks!
5 years, 4 months ago (2015-08-19 01:11:16 UTC) #2
benwells
https://codereview.chromium.org/1300763002/diff/120001/chrome/browser/extensions/launch_util.cc File chrome/browser/extensions/launch_util.cc (right): https://codereview.chromium.org/1300763002/diff/120001/chrome/browser/extensions/launch_util.cc#newcode55 chrome/browser/extensions/launch_util.cc:55: // 3. one of IsNewBookmarkAppsEnabled() or CanHostedAppsOpenInWindows() are Why ...
5 years, 4 months ago (2015-08-19 02:39:21 UTC) #3
dominickn
https://codereview.chromium.org/1300763002/diff/120001/chrome/browser/extensions/launch_util.cc File chrome/browser/extensions/launch_util.cc (right): https://codereview.chromium.org/1300763002/diff/120001/chrome/browser/extensions/launch_util.cc#newcode55 chrome/browser/extensions/launch_util.cc:55: // 3. one of IsNewBookmarkAppsEnabled() or CanHostedAppsOpenInWindows() are On ...
5 years, 4 months ago (2015-08-19 03:01:13 UTC) #4
benwells
https://codereview.chromium.org/1300763002/diff/120001/chrome/browser/extensions/launch_util.cc File chrome/browser/extensions/launch_util.cc (right): https://codereview.chromium.org/1300763002/diff/120001/chrome/browser/extensions/launch_util.cc#newcode55 chrome/browser/extensions/launch_util.cc:55: // 3. one of IsNewBookmarkAppsEnabled() or CanHostedAppsOpenInWindows() are On ...
5 years, 4 months ago (2015-08-19 03:26:52 UTC) #5
dominickn
@tapted: similar to the patch you reviewed the other day, except now there is a ...
5 years, 4 months ago (2015-08-19 05:21:58 UTC) #7
benwells
https://codereview.chromium.org/1300763002/diff/160001/chrome/browser/ui/app_list/app_context_menu.cc File chrome/browser/ui/app_list/app_context_menu.cc (right): https://codereview.chromium.org/1300763002/diff/160001/chrome/browser/ui/app_list/app_context_menu.cc#newcode118 chrome/browser/ui/app_list/app_context_menu.cc:118: if (extensions::util::CanHostedAppsOpenInWindows()) { This logic looks nice and simple ...
5 years, 4 months ago (2015-08-19 05:44:54 UTC) #8
dominickn
Ah, I understand now. Fixed the logic in app_context_menu and app_info_summary_panel to match this. Thanks! ...
5 years, 4 months ago (2015-08-19 06:29:04 UTC) #9
tapted
https://codereview.chromium.org/1300763002/diff/200001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1300763002/diff/200001/chrome/browser/about_flags.cc#newcode1492 chrome/browser/about_flags.cc:1492: switches::kDisableHostedAppsInWindows)}, does anything read switches::kDisableHostedAppsInWindows? (or will it in ...
5 years, 4 months ago (2015-08-19 06:48:13 UTC) #10
dominickn
Thanks! https://codereview.chromium.org/1300763002/diff/200001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1300763002/diff/200001/chrome/browser/about_flags.cc#newcode1492 chrome/browser/about_flags.cc:1492: switches::kDisableHostedAppsInWindows)}, On 2015/08/19 06:48:12, tapted wrote: > does ...
5 years, 4 months ago (2015-08-19 07:10:41 UTC) #11
benwells
non-mac stuff lgtm
5 years, 4 months ago (2015-08-19 07:30:38 UTC) #12
benwells
On 2015/08/19 07:30:38, benwells wrote: > non-mac stuff lgtm (meaning, not the .mm file)
5 years, 4 months ago (2015-08-19 07:31:08 UTC) #13
dominickn
benwells: thanks! tapted: do you have any further issues I should address? isherman: please review ...
5 years, 4 months ago (2015-08-20 00:31:20 UTC) #15
Ilya Sherman
histograms.xml lgtm
5 years, 4 months ago (2015-08-20 00:32:25 UTC) #16
tapted
lgtm https://codereview.chromium.org/1300763002/diff/200001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1300763002/diff/200001/chrome/browser/about_flags.cc#newcode1492 chrome/browser/about_flags.cc:1492: switches::kDisableHostedAppsInWindows)}, On 2015/08/19 07:10:41, dominickn wrote: > On ...
5 years, 4 months ago (2015-08-20 00:44:02 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300763002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300763002/240001
5 years, 4 months ago (2015-08-20 00:59:15 UTC) #20
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 4 months ago (2015-08-20 02:09:27 UTC) #21
commit-bot: I haz the power
5 years, 4 months ago (2015-08-20 02:10:04 UTC) #22
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/2b10cbd741f3d355186d28bf048cefda6706e297
Cr-Commit-Position: refs/heads/master@{#344406}

Powered by Google App Engine
This is Rietveld 408576698