Is there a way to make a google chrome extension require another extension?

112 views
Skip to first unread message

Spikechrisgaming

unread,
Jun 29, 2015, 9:44:19 AM6/29/15
to chromium-...@chromium.org
Is there a way to make a google chrome extension require another? As one of my google chrome extensions needs another extension to work.

PhistucK

unread,
Jun 29, 2015, 9:49:35 AM6/29/15
to Spikechrisgaming, Chromium-extensions
I know the Android runtime (or applications ported from Android to Chrome) does that, so there might be an undocumented API for it (it is a manifest key). Perhaps it is only supported in Chrome applications and not extensions, though.


PhistucK

On Mon, Jun 29, 2015 at 4:44 PM, Spikechrisgaming <spikec...@gmail.com> wrote:
Is there a way to make a google chrome extension require another? As one of my google chrome extensions needs another extension to work.

--
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/e0817215-73be-4186-9725-891e39709d1f%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Teddy Garland

unread,
Jun 29, 2015, 12:01:55 PM6/29/15
to chromium-...@chromium.org
You can use management (https://developer.chrome.com/extensions/management) to check the IDs of the extensions that are installed to make sure that the parent extension is installed an enabled. the onEnabled and onDisabled event listeners would be helpful too. If the parent extension isn't enabled, then you could display some sort of error message through the child extension.

Spikechrisgaming

unread,
Jun 29, 2015, 2:47:14 PM6/29/15
to chromium-...@chromium.org
How would i use that? 

Teddy Garland

unread,
Jun 29, 2015, 6:01:02 PM6/29/15
to chromium-...@chromium.org
In background script of the child extension, use chrome.management.get("YOUR_EXTENSION_ID", callback)

within the callback verify that your parent extension is there. if it is not then don't execute your child extension scripts.
Reply all
Reply to author
Forward
0 new messages