Index: chrome/browser/extensions/extension_service.cc |
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc |
index e13371fb66a1d2b28e4ac85188d77eefb76a2e68..c0237367c509cafd04d2625853addb91f64a9a3d 100644 |
--- a/chrome/browser/extensions/extension_service.cc |
+++ b/chrome/browser/extensions/extension_service.cc |
@@ -695,11 +695,12 @@ bool ExtensionService::UninstallExtension( |
// we don't do this. |
bool external_uninstall = |
(reason == extensions::UNINSTALL_REASON_INTERNAL_MANAGEMENT) || |
+ (reason == extensions::UNINSTALL_REASON_COMPONENT) || |
(reason == extensions::UNINSTALL_REASON_REINSTALL) || |
(reason == extensions::UNINSTALL_REASON_ORPHANED_EXTERNAL_EXTENSION) || |
(reason == extensions::UNINSTALL_REASON_ORPHANED_SHARED_MODULE) || |
(reason == extensions::UNINSTALL_REASON_SYNC && |
- extension->was_installed_by_custodian()); |
+ extension->was_installed_by_custodian()); |
if (!external_uninstall && |
(!by_policy->UserMayModifySettings(extension.get(), error) || |
by_policy->MustRemainInstalled(extension.get(), error))) { |
@@ -1394,7 +1395,7 @@ void ExtensionService::RemoveComponentExtension( |
content::Source<Profile>(profile_), |
content::Details<const Extension>(extension.get())); |
ExtensionRegistry::Get(profile_)->TriggerOnUninstalled( |
- extension.get(), extensions::UNINSTALL_REASON_INTERNAL_MANAGEMENT); |
+ extension.get(), extensions::UNINSTALL_REASON_COMPONENT); |
} |
} |