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

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: 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
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 ea467f0923ea43ee2131433e8c908a3794f0c82e..687c71687cb80f289eacf34d62cd6d2f74f0ac51 100644
--- a/chrome/browser/extensions/app_shortcut_manager.cc
+++ b/chrome/browser/extensions/app_shortcut_manager.cc
@@ -63,9 +63,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() &&
@@ -85,6 +85,7 @@ void AppShortcutManager::Observe(int type,
UpdateApplicationShortcuts(extension);
#endif
Avi (use Gerrit) 2013/02/05 00:19:25 Can you label some of these? It's hard to keep tra
jeremya 2013/02/05 02:38:14 Done.
}
+#endif
Avi (use Gerrit) 2013/02/05 00:19:25 ...and here.
jeremya 2013/02/05 02:38:14 Done.
break;
}
case chrome::NOTIFICATION_EXTENSION_UNINSTALLED: {
@@ -96,7 +97,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') | chrome/browser/web_applications/web_app_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698