Index: chrome/browser/ui/cocoa/browser_window_cocoa.mm |
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
index e09901bea8e488d530f95b9f3626b372bf343841..132c3e09471303fdb81f8528dc070e4d69254f9c 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
@@ -16,6 +16,7 @@ |
#include "chrome/browser/password_manager/password_manager.h" |
#include "chrome/browser/prefs/pref_service.h" |
#include "chrome/browser/profiles/profile.h" |
+#include "chrome/browser/shell_integration.h" |
#include "chrome/browser/ui/bookmarks/bookmark_utils.h" |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/browser_command_controller.h" |
@@ -42,6 +43,8 @@ |
#import "chrome/browser/ui/cocoa/web_dialog_window_controller.h" |
#import "chrome/browser/ui/cocoa/website_settings_bubble_controller.h" |
#include "chrome/browser/ui/page_info_bubble.h" |
+#include "chrome/browser/ui/web_applications/web_app_ui.h" |
+#include "chrome/browser/web_applications/web_app.h" |
#include "chrome/common/chrome_notification_types.h" |
#include "chrome/common/pref_names.h" |
#include "content/public/browser/native_web_keyboard_event.h" |
@@ -565,7 +568,12 @@ void BrowserWindowCocoa::HandleKeyboardEvent( |
void BrowserWindowCocoa::ShowCreateChromeAppShortcutsDialog( |
Profile* profile, const extensions::Extension* app) { |
- NOTIMPLEMENTED(); |
+ ShellIntegration::ShortcutInfo shortcut_info; |
sail
2013/01/15 15:17:39
Could you add a comment that normally you'd want t
jeremya
2013/01/16 02:51:51
Done.
|
+ web_app::UpdateShortcutInfoForApp(*app, profile, &shortcut_info); |
+ shortcut_info.create_in_applications_menu = true; |
+ shortcut_info.create_in_quick_launch_bar = true; |
+ shortcut_info.create_on_desktop = true; |
Robert Sesek
2013/01/15 15:18:14
The Desktop, really?
sail
2013/01/15 15:22:02
Not really, we only publish to /Applications (see
jeremya
2013/01/16 02:51:51
Actually the shortcut creator for mac totally igno
|
+ web_app::CreateShortcuts(shortcut_info); |
} |
void BrowserWindowCocoa::Cut() { |