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

Unified Diff: chrome/browser/extensions/app_shortcut_manager.cc

Issue 12178030: [mac] Delete app shortcuts on app uninstall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix rebase Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/web_applications/web_app_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | chrome/browser/web_applications/web_app_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698