Question about setUninstallURL and GPO / Force Install Policies

53 views
Skip to first unread message

Salmin Skenderovic

unread,
Jul 8, 2025, 1:58:34 PM7/8/25
to Chromium Extensions
If you set an uninstallUrl, will this trigger in all the possible scenarios of removing / blocking extensions via policies?

- Removing it from ExtensionInstallForcelist
- Adding it to ExtensionInstallBlocklist
- Other scenarios?

Deco

unread,
Jul 8, 2025, 2:36:39 PM7/8/25
to Salmin Skenderovic, Chromium Extensions
The file where this is fired is found here.

Here's the actual code:
void RuntimeEventRouter::OnExtensionUninstalled(
content::BrowserContext* context,
const std::string& extension_id,
UninstallReason reason) {
if (!(reason == UNINSTALL_REASON_USER_INITIATED ||
reason == UNINSTALL_REASON_MANAGEMENT_API ||
reason == UNINSTALL_REASON_CHROME_WEBSTORE)) {
return;
}
So it will not be uninstalled in the event that the admin removes the extension, if the admin puts an ID on safe browsing for the blacklist (this means enterprise specific stuff it will probably not fire for unless they are doing an explicit uninstall).

Thanks,
Deco

--
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 view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/5a4eb56b-13c0-4e83-89d1-c2a721397d27n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages