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

Unified Diff: apps/shortcut_manager.cc

Issue 14238037: Made it possible to tell whether an extension is being installed or updated. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added extra check. Created 7 years, 8 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/chromeos/enterprise_extension_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shortcut_manager.cc
diff --git a/apps/shortcut_manager.cc b/apps/shortcut_manager.cc
index c002100a4602d0d15f9e6c8cb954ee0b77409160..fc2231a850fe446ca3c9cbb3845acbecc2f68d6f 100644
--- a/apps/shortcut_manager.cc
+++ b/apps/shortcut_manager.cc
@@ -34,8 +34,9 @@ void ShortcutManager::Observe(int type,
switch (type) {
case chrome::NOTIFICATION_EXTENSION_INSTALLED: {
#if !defined(OS_MACOSX)
- const Extension* extension = content::Details<const Extension>(
- details).ptr();
+ const Extension* extension =
+ content::Details<const extensions::InstalledExtensionInfo>(details)->
+ extension;
if (extension->is_platform_app() &&
extension->location() != extensions::Manifest::COMPONENT) {
web_app::UpdateShortcutInfoAndIconForApp(*extension, profile_,
« no previous file with comments | « no previous file | chrome/browser/chromeos/enterprise_extension_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698