chrome.management.getAll() help

1,822 views
Skip to first unread message

Dominic Shahbazi

unread,
Mar 25, 2014, 10:51:50 AM3/25/14
to chromium-...@chromium.org
Im trying to use chrome.management.getAll() to get an array of all my installed extensions, which i can then perform some operations on. All i need it to return is an array of the extension details, but when using a callback im having issues. Can anyody help me with the usage of this? 

Thanks

Antony Sargent

unread,
Mar 25, 2014, 1:47:05 PM3/25/14
to Dominic Shahbazi, Chromium-extensions
Make sure you have the "management" permission in your manifest as shown on the documentation page: https://developer.chrome.com/extensions/management

Here's some sample code for you to try:

chrome.management.getAll(function(items) {
  for (var i = 0; i < items.length; i++) {
    var item = items[i];
    console.log(item.id + " : (" + item.type + ") " + item.name);
  }
});



On Tue, Mar 25, 2014 at 7:51 AM, Dominic Shahbazi <beefma...@gmail.com> wrote:
Im trying to use chrome.management.getAll() to get an array of all my installed extensions, which i can then perform some operations on. All i need it to return is an array of the extension details, but when using a callback im having issues. Can anyody help me with the usage of this? 

Thanks

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/be2c3e88-3673-4289-a93c-c76ba84299a5%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

chris baldwin

unread,
Sep 15, 2015, 1:57:46 AM9/15/15
to Chromium-extensions, beefma...@gmail.com
I am trying to use this as well, I have the permission set, but I'm getting    

chrome.management.getAll is not a function

I am trying to make an app for a basic desktop in the sense. And I am thinking that Apps must not have this permission but no where does it state this.

Wolf War

unread,
Sep 15, 2015, 3:59:20 AM9/15/15
to chris baldwin, Chromium-extensions, beefma...@gmail.com
chromium apps can't access management API (and many other)

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
Reply all
Reply to author
Forward
0 new messages