summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-03 10:56:02 +0000
committermgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-03 10:56:02 +0000
commit41bb80bd2a3f8b8d3582a833ba37e3996c70bd29 (patch)
tree5e0bdb9251c8a0080dca372487e43eeb2285322e /apps
parentaa328c73297697e1d4846c0cb8ef7be7f8d80608 (diff)
downloadchromium_src-41bb80bd2a3f8b8d3582a833ba37e3996c70bd29.zip
chromium_src-41bb80bd2a3f8b8d3582a833ba37e3996c70bd29.tar.gz
chromium_src-41bb80bd2a3f8b8d3582a833ba37e3996c70bd29.tar.bz2
Made it possible to tell whether an extension is being installed or updated.
The NOTIFICATION_EXTENSION_INSTALLED message details now include a Boolean flag already_installed, which, if true, implies that the extension is being updated rather than installed. BUG=234041 TBR=kinuko@chromium.org Review URL: https://chromiumcodereview.appspot.com/14238037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198079 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps')
-rw-r--r--apps/shortcut_manager.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/shortcut_manager.cc b/apps/shortcut_manager.cc
index c002100..fc2231a 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_,