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 467c844d7b1b44537d1fd16200837a6a4941065e..d87bb4650ed7cb079c3fa53f17b1f05082aa31b0 100644 |
--- a/chrome/browser/extensions/app_shortcut_manager.cc |
+++ b/chrome/browser/extensions/app_shortcut_manager.cc |
@@ -43,9 +43,9 @@ AppShortcutManager::~AppShortcutManager() {} |
void AppShortcutManager::Observe(int type, |
const content::NotificationSource& source, |
const content::NotificationDetails& details) { |
-#if !defined(OS_MACOSX) |
switch (type) { |
case chrome::NOTIFICATION_EXTENSION_INSTALLED: { |
+#if !defined(OS_MACOSX) |
const Extension* extension = content::Details<const Extension>( |
details).ptr(); |
if (extension->is_platform_app() && |
@@ -63,8 +63,9 @@ void AppShortcutManager::Observe(int type, |
} |
#else |
UpdateApplicationShortcuts(extension); |
-#endif |
+#endif // defined(OS_WIN) |
} |
+#endif // !defined(OS_MACOSX) |
break; |
} |
case chrome::NOTIFICATION_EXTENSION_UNINSTALLED: { |
@@ -76,7 +77,6 @@ void AppShortcutManager::Observe(int type, |
default: |
NOTREACHED(); |
} |
-#endif |
} |
#if defined(OS_WIN) |