Index: chrome/browser/extensions/app_shortcut_manager.cc |
diff --git a/chrome/browser/extensions/app_shortcut_manager.cc b/chrome/browser/extensions/app_shortcut_manager.cc |
index 4d8fb70b75ac1fedc6dea24759e33e8ccb63f041..f3625858d2b0534498e5873f6647bb0e5bba5c8b 100644 |
--- a/chrome/browser/extensions/app_shortcut_manager.cc |
+++ b/chrome/browser/extensions/app_shortcut_manager.cc |
@@ -62,10 +62,14 @@ void AppShortcutManager::Observe(int type, |
const content::NotificationSource& source, |
const content::NotificationDetails& details) { |
DCHECK(type == chrome::NOTIFICATION_EXTENSION_INSTALLED); |
- const Extension* extension = content::Details<const Extension>(details).ptr(); |
- if (!disable_shortcut_creation_for_tests && extension->is_platform_app() && |
- extension->location() != Extension::LOAD) |
- InstallApplicationShortcuts(extension); |
+ #if !defined(OS_MACOSX) |
+ const Extension* extension = content::Details<const Extension>( |
+ details).ptr(); |
+ if (!disable_shortcut_creation_for_tests && |
+ extension->is_platform_app() && |
+ extension->location() != Extension::LOAD) |
+ InstallApplicationShortcuts(extension); |
+ #endif |
} |
// static |
@@ -75,14 +79,6 @@ void AppShortcutManager::SetShortcutCreationDisabledForTesting(bool disabled) { |
void AppShortcutManager::InstallApplicationShortcuts( |
const Extension* extension) { |
-#if defined(OS_MACOSX) |
- // TODO(sail): For now only install shortcuts if enable platform apps is true. |
- if (!CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kEnablePlatformApps)) { |
- return; |
- } |
-#endif |
- |
shortcut_info_.extension_id = extension->id(); |
shortcut_info_.url = GURL(extension->launch_web_url()); |
shortcut_info_.title = UTF8ToUTF16(extension->name()); |