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

Issue 5273004: Add "create Application Shortcut" to the app menu on NTP. (Closed)

Created:
10 years, 1 month ago by Sam Kerner (Chrome)
Modified:
9 years, 7 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews, ben+cc_chromium.org, Erik does not do reviews, Aaron Boodman, arv (Not doing code reviews), pam+watch_chromium.org, brettw-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add "create Application Shortcut" to the app menu on NTP. BUG=52451 TEST=Manually create app shortcuts for urls and apps. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67664

Patch Set 1 : Fix views compile. #

Patch Set 2 : Mac comple fix. #

Patch Set 3 : Add support for GTK. #

Total comments: 6

Patch Set 4 : Polish #

Total comments: 5

Patch Set 5 : Address rev comments. #

Patch Set 6 : Rebase for commit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+509 lines, -148 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_main.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.mm View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/app_launcher_handler.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/app_launcher_handler.cc View 1 2 3 4 6 chunks +29 lines, -12 lines 0 comments Download
M chrome/browser/dom_ui/ntp_resource_cache.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.h View 1 chunk +13 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 1 chunk +31 lines, -10 lines 0 comments Download
M chrome/browser/gtk/browser_window_gtk.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/gtk/browser_window_gtk.cc View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/gtk/create_application_shortcuts_dialog_gtk.h View 1 2 3 4 4 chunks +60 lines, -13 lines 0 comments Download
M chrome/browser/gtk/create_application_shortcuts_dialog_gtk.cc View 1 2 3 4 6 chunks +83 lines, -13 lines 0 comments Download
M chrome/browser/resources/new_new_tab.html View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/ntp/apps.js View 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/shell_integration.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_init.cc View 1 chunk +19 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/views/browser_dialogs.h View 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/create_application_shortcut_view.h View 4 chunks +61 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/create_application_shortcut_view.cc View 11 chunks +133 lines, -64 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/common/switch_utils.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/test_browser_window.h View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Sam Kerner (Chrome)
This CL adds Chrome app shortcut creation for windows and linux views. Working on GTK ...
10 years ago (2010-11-29 05:22:23 UTC) #1
Sam Kerner (Chrome)
On 2010/11/29 05:22:23, Sam Kerner (Chrome) wrote: > This CL adds Chrome app shortcut creation ...
10 years ago (2010-11-29 23:51:44 UTC) #2
Aaron Boodman
In the screen shots, the icon in the shortcut dialog looks too small and off-center. ...
10 years ago (2010-11-30 00:29:28 UTC) #3
Sam Kerner (Chrome)
On 2010/11/30 00:29:28, Aaron Boodman wrote: > In the screen shots, the icon in the ...
10 years ago (2010-11-30 01:11:50 UTC) #4
Sam Kerner (Chrome)
http://codereview.chromium.org/5273004/diff/18025/chrome/browser/dom_ui/app_launcher_handler.cc File chrome/browser/dom_ui/app_launcher_handler.cc (right): http://codereview.chromium.org/5273004/diff/18025/chrome/browser/dom_ui/app_launcher_handler.cc#newcode339 chrome/browser/dom_ui/app_launcher_handler.cc:339: DCHECK(extension); On 2010/11/30 00:29:28, Aaron Boodman wrote: > My ...
10 years ago (2010-11-30 01:21:04 UTC) #5
Aaron Boodman
10 years ago (2010-11-30 01:30:47 UTC) #6
lgtm

http://codereview.chromium.org/5273004/diff/21001/chrome/browser/gtk/create_a...
File chrome/browser/gtk/create_application_shortcuts_dialog_gtk.cc (right):

http://codereview.chromium.org/5273004/diff/21001/chrome/browser/gtk/create_a...
chrome/browser/gtk/create_application_shortcuts_dialog_gtk.cc:327: void
CreateChromeApplicationShortcutsDialogGtk::OnCreatedShortcut() {}
On 2010/11/30 01:21:04, Sam Kerner (Chrome) wrote:
> On 2010/11/30 00:29:28, Aaron Boodman wrote:
> > Shouldn't there be something in this?
> 
> The superclass calls OnCreatedShortcut() after a shortcut is created.  The old
> URL shortcuts open the app.  The new chrome app shortcuts do not, so there is
> nothing to do.
> 
> I chose to not open the app because the user is on the NTP.  If they want to
> open the app, they can click on the icon.  For URL shortcuts, the only way to
> open them is to find the icon that was created and click it, so opening the
app
> makes more sense.
> 
> I changed OnCreated() to not be pure virtual, so that the empty method is not
> needed.

Ah, I agree.

In that case, the correct style I think is to put a newline between the two
braces.

Powered by Google App Engine
This is Rietveld 408576698