chrome.experimental.management.onUninstalled

773 views
Skip to first unread message

panco

unread,
Sep 10, 2010, 10:16:49 AM9/10/10
to Chromium-extensions
I've been trying to use this event to log uninstall events of our app,
but so far nothing I put into the callback (the only param of
addListener on the mentioned object) happens - alert('foo') for
instance.
Im using Chrome 7.0.517.0 beta on Windows 7 and have enabled
experimental in manifest.json and am running Chrome with additional
parameter (--enable-experimental-extension-apis).
Is this even active (experimental...)?

PhistucK

unread,
Sep 10, 2010, 10:51:14 AM9/10/10
to panco, Chromium-extensions
I believe this API is not for use by normal extensions, but only by component extensions (built in extensions).

PhistucK




--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


panco

unread,
Sep 10, 2010, 1:29:34 PM9/10/10
to Chromium-extensions
Can you please point me to a source where I can find out what's the
difference between normal and component extension. As far as I know
all I have to do is put "experimental" key into the permissions list
in manifest.json and run chrome with a special parameter and
experimentals should work.

Arne Roomann-Kurrik

unread,
Sep 10, 2010, 1:41:23 PM9/10/10
to panco, Chromium-extensions
This API is actually meant for extensions which replace the new tab page, so it should be good for any extension to use.  It's a fairly new addition, though, so it's possible that some events haven't been wired up fully.  I haven't had a chance to play around with this yet, so I'm not really up to speed on the status.

Can you share the code you're using?  

~Arne



--

Finnur Thorarinsson

unread,
Sep 10, 2010, 1:53:59 PM9/10/10
to kur...@chromium.org, panco, Chromium-extensions
Does it work if you uninstall something other than the extension that's monitoring uninstall?

panco

unread,
Sep 10, 2010, 1:58:31 PM9/10/10
to Chromium-extensions
chrome.experimental.management.onUninstalled.addListener(function
(info) {
alert('foo');
});
It's basicly an example copy-pasted, but just because of that I would
expect it to work. I've followed all the instructions on the docs
page, downloaded the latest Chrome (dev), though it would be really
nice to specify the minimum version.

This snippet is in background.html.

Aaron Boodman

unread,
Sep 10, 2010, 8:30:06 PM9/10/10
to panco, Chromium-extensions

Try it on an extension other than the one being uninstalled. The
envisioned use case was replacing NTP, not notifying an extension when
it is about to be uninstalled.

- a

PhistucK

unread,
Sep 11, 2010, 5:24:41 AM9/11/10
to kur...@chromium.org, Chromium-extensions
Then what about experimental.bookmarkManager?

(And while I am here. What about experimental.metricsexperimental.rlzexperimental.accessibilityexperimental.ttsexperimental.input and experimental.popup?)
PhistucK

Arne Roomann-Kurrik

unread,
Sep 16, 2010, 8:48:58 PM9/16/10
to PhistucK, Chromium-extensions
Everything listed at http://code.google.com/chrome/extensions/trunk/experimental.html is intended to be external developer-facing.  So nothing out of that list, although management is listed.

~Arne

PhistucK

unread,
Sep 17, 2010, 9:04:01 AM9/17/10
to kur...@chromium.org, Chromium-extensions
Is experimental.bookmarkManager going to be developer facing at some point?

PhistucK

Gerardo Capiel

unread,
Sep 22, 2010, 1:52:29 PM9/22/10
to Chromium-extensions
I'm also curious about experimental.accessibility and
experimental.tts. When will those be developer facing and documented?

On Sep 16, 5:48 pm, Arne Roomann-Kurrik <kur...@chromium.org> wrote:
> Everything listed athttp://code.google.com/chrome/extensions/trunk/experimental.htmlis intended
> to be external developer-facing.  So nothing out of that list, although
> management is listed.
>
> ~Arne
>
>
>
> On Sat, Sep 11, 2010 at 2:24 AM, PhistucK <phist...@gmail.com> wrote:
> > Then what about experimental.bookmarkManager?
>
> > (And while I am here. What about experimental.metrics, experimental.rlz,
> > experimental.accessibility, experimental.tts, experimental.input and
> > experimental.popup?)
> >  ☆*PhistucK*
>
> > On Fri, Sep 10, 2010 at 20:41, Arne Roomann-Kurrik <kur...@chromium.org>wrote:
>
> >> This API is actually meant for extensions which replace the new tab page,
> >> so it should be good for any extension to use.  It's a fairly new addition,
> >> though, so it's possible that some events haven't been wired up fully.  I
> >> haven't had a chance to play around with this yet, so I'm not really up to
> >> speed on the status.
>
> >> Can you share the code you're using?
>
> >> ~Arne
>
> >> On Fri, Sep 10, 2010 at 10:29 AM, panco <danijel.pan...@gmail.com> wrote:
>
> >>> Can you please point me to a source where I can find out what's the
> >>> difference between normal and component extension. As far as I know
> >>> all I have to do is put "experimental" key into the permissions list
> >>> in manifest.json and run chrome with a special parameter and
> >>> experimentals should work.
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "Chromium-extensions" group.
> >>> To post to this group, send email to chromium-extensi...@chromium.org.
> >>> To unsubscribe from this group, send email to
> >>> chromium-extensions+unsubscr...@chromium.org<chromium-extensions%2Bunsubscr...@chromium.org>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en
> >>> .
>
> >>  --
> >> You received this message because you are subscribed to the Google Groups
> >> "Chromium-extensions" group.
> >> To post to this group, send email to chromium-extensi...@chromium.org.
> >> To unsubscribe from this group, send email to
> >> chromium-extensions+unsubscr...@chromium.org<chromium-extensions%2Bunsubscr...@chromium.org>
> >> .

Arne Roomann-Kurrik

unread,
Oct 13, 2010, 5:19:34 AM10/13/10
to Gerardo Capiel, Chromium-extensions
Sorry, I don't have any information about unreleased APIs.  If it's not in experimental, it's not intended for external developer consumption.

@PhistucK - sorry, no idea about bookmarkManager.  Maybe someone else on the list knows.

~Arne


To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.

IsaSuperfast

unread,
Oct 24, 2010, 4:15:34 PM10/24/10
to Chromium-extensions
I'm having the same problem, except now it's chrome.management since
it's out of experimental. Here's my code from my background page's
javascript:
chrome.management.onUninstalled.addListener(function ()
{ alert("Uninstalling") });
The docs say to put function ("idofextension")
{ alert("Uninstalling") } but that just gives me an error.
http://code.google.com/chrome/extensions/management.html#event-onUninstalled

IsaSuperfast

unread,
Oct 24, 2010, 4:26:20 PM10/24/10
to Chromium-extensions
The error from the console reads:
"Uncaught TypeError: Cannot read property 'onUninstalled' of
undefined"
for:
chrome.management.onUninstalled.addListener(function()
{ alert("Uninstalling") });

Which means that chrome isn't defined.

IsaSuperfast

unread,
Oct 24, 2010, 7:38:19 PM10/24/10
to Chromium-extensions
Hey! It works!
I added the permission "management" to my manifest and voila!
Example usage:
manifest.json:
...
"permissions": [
"management",
...
]
...

background.html > script:
chrome.management.onUninstalled.addListener(function()
{ alert("Uninstalling") });

Hope that fixes the problem, panco!
Reply all
Reply to author
Forward
0 new messages