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

Issue 2772713002: Remove IDC_CREATE_SHORTCUT and its associated UI. (Closed)

Created:
3 years, 9 months ago by tapted
Modified:
3 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, Matt Giuca, tfarina, tapted, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove IDC_CREATE_SHORTCUT and its associated UI. IDC_CREATE_SHORTCUT allows a user to create a hosted app from an arbitrary web page. It was never implemented for Mac. On other platforms, it has beed replaced by "Add to {Desktop, Homescreen, Applications}". That is, BookmarkAppConfirmationView is now used instead of CreateUrlApplicationShortcutView. And although it may appear that IDC_CREATE_SHORTCUTS is an "enabled" command, there's actually no way to invoke that command on any platform because app_menu_model.cc will always add IDC_CREATE_HOSTED_APP instead. (One exception: the x11 menubar on Desktop Linux had an entry, but that's accidental). BUG=702551 Review-Url: https://codereview.chromium.org/2772713002 Cr-Commit-Position: refs/heads/master@{#462322} Committed: https://chromium.googlesource.com/chromium/src/+/b72edff87d31139a6c466b14c153776029bd6008

Patch Set 1 : Fix compile #

Total comments: 7

Patch Set 2 : iwyu #

Total comments: 8

Patch Set 3 : respond to comments #

Total comments: 7

Patch Set 4 : rebase #

Patch Set 5 : respond to comments #

Total comments: 2

Patch Set 6 : rebase to get r462081 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -684 lines) Patch
M chrome/app/chrome_command_ids.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/extensions/tab_helper.h View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 3 chunks +0 lines, -26 lines 0 comments Download
M chrome/browser/shell_integration_linux.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 1 chunk +0 lines, -126 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 3 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/ui/browser_commands.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 2 chunks +0 lines, -32 lines 0 comments Download
M chrome/browser/ui/browser_dialogs.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/toolbar/app_menu_model.h View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/toolbar/app_menu_model.cc View 3 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/create_application_shortcut_view.h View 1 2 2 chunks +24 lines, -95 lines 0 comments Download
M chrome/browser/ui/views/create_application_shortcut_view.cc View 1 2 3 9 chunks +39 lines, -343 lines 0 comments Download
M chrome/browser/ui/views/frame/global_menu_bar_x11.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/web_applications/web_app.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/web_applications/web_app_win.cc View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 55 (39 generated)
tapted
Hiya dom, please take a look. https://codereview.chromium.org/2772713002/diff/60001/chrome/browser/ui/views/frame/global_menu_bar_x11.cc File chrome/browser/ui/views/frame/global_menu_bar_x11.cc (left): https://codereview.chromium.org/2772713002/diff/60001/chrome/browser/ui/views/frame/global_menu_bar_x11.cc#oldcode155 chrome/browser/ui/views/frame/global_menu_bar_x11.cc:155: { IDS_CREATE_SHORTCUTS, IDC_CREATE_SHORTCUTS ...
3 years, 8 months ago (2017-03-31 05:23:22 UTC) #19
dominickn
Looks fine to me, but I'm a non-expert for a bunch of these files. :) ...
3 years, 8 months ago (2017-04-03 03:10:01 UTC) #20
tapted
+pkasting for chrome/browser/ui +erg for shell_integration_linux.cc and global_menu_bar_x11.cc +isherman for histograms.xml https://codereview.chromium.org/2772713002/diff/60001/chrome/browser/ui/views/create_application_shortcut_view.h File chrome/browser/ui/views/create_application_shortcut_view.h (right): ...
3 years, 8 months ago (2017-04-04 01:30:40 UTC) #27
Peter Kasting
LGTM https://codereview.chromium.org/2772713002/diff/80001/chrome/browser/ui/toolbar/app_menu_model.h File chrome/browser/ui/toolbar/app_menu_model.h (left): https://codereview.chromium.org/2772713002/diff/80001/chrome/browser/ui/toolbar/app_menu_model.h#oldcode50 chrome/browser/ui/toolbar/app_menu_model.h:50: MENU_ACTION_CREATE_SHORTCUTS = 21, Nit: Might be nice to ...
3 years, 8 months ago (2017-04-04 02:31:49 UTC) #28
Ilya Sherman
histograms.xml lgtm
3 years, 8 months ago (2017-04-04 05:07:05 UTC) #31
tapted
https://codereview.chromium.org/2772713002/diff/80001/chrome/browser/ui/toolbar/app_menu_model.h File chrome/browser/ui/toolbar/app_menu_model.h (left): https://codereview.chromium.org/2772713002/diff/80001/chrome/browser/ui/toolbar/app_menu_model.h#oldcode50 chrome/browser/ui/toolbar/app_menu_model.h:50: MENU_ACTION_CREATE_SHORTCUTS = 21, On 2017/04/04 02:31:49, Peter Kasting wrote: ...
3 years, 8 months ago (2017-04-04 06:48:39 UTC) #34
Elliot Glaysher
lgtm
3 years, 8 months ago (2017-04-04 17:06:42 UTC) #37
tapted
+grt, +benwells for last OWNERS bits grt: chrome/app/chrome_command_ids.h benwells: chrome/browser/extensions/tab_helper* - Thanks!
3 years, 8 months ago (2017-04-04 23:32:40 UTC) #39
benwells
lgtm
3 years, 8 months ago (2017-04-05 00:45:55 UTC) #40
grt (UTC plus 2)
lgtm w/ nits https://codereview.chromium.org/2772713002/diff/100001/chrome/browser/ui/browser_commands.cc File chrome/browser/ui/browser_commands.cc (left): https://codereview.chromium.org/2772713002/diff/100001/chrome/browser/ui/browser_commands.cc#oldcode1298 chrome/browser/ui/browser_commands.cc:1298: base::RecordAction(UserMetricsAction("CreateShortcut")); mark as obsolete in actions.xml ...
3 years, 8 months ago (2017-04-05 08:28:00 UTC) #41
tapted
isherman: PTAL for actions.xml (e.g. should I remove the placeholder strings for the obsolete item?) ...
3 years, 8 months ago (2017-04-05 12:35:44 UTC) #44
grt (UTC plus 2)
Thanks. https://codereview.chromium.org/2772713002/diff/100001/chrome/browser/ui/toolbar/app_menu_model.cc File chrome/browser/ui/toolbar/app_menu_model.cc (left): https://codereview.chromium.org/2772713002/diff/100001/chrome/browser/ui/toolbar/app_menu_model.cc#oldcode442 chrome/browser/ui/toolbar/app_menu_model.cc:442: UMA_HISTOGRAM_MEDIUM_TIMES("WrenchMenu.TimeToAction.CreateShortcuts", On 2017/04/05 12:35:43, tapted wrote: > On ...
3 years, 8 months ago (2017-04-05 13:32:05 UTC) #47
Ilya Sherman
actions.xml lgtm
3 years, 8 months ago (2017-04-05 23:06:25 UTC) #48
tapted
Thanks all! https://codereview.chromium.org/2772713002/diff/140001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/2772713002/diff/140001/tools/metrics/actions/actions.xml#newcode9798 tools/metrics/actions/actions.xml:9798: <action name="MobileMenuDataSaverOpened"> On 2017/04/05 12:35:44, tapted wrote: ...
3 years, 8 months ago (2017-04-06 00:26:39 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2772713002/160001
3 years, 8 months ago (2017-04-06 00:28:00 UTC) #52
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 02:00:13 UTC) #55
Message was sent while issue was closed.
Committed patchset #6 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/b72edff87d31139a6c466b14c153...

Powered by Google App Engine
This is Rietveld 408576698