| Index: chrome/browser/extensions/pending_extension_manager.cc
|
| diff --git a/chrome/browser/extensions/pending_extension_manager.cc b/chrome/browser/extensions/pending_extension_manager.cc
|
| index 515f01e3a019d665048fdfb5875701054cef59d4..36038b92f83039747805229bc92149a9311f202c 100644
|
| --- a/chrome/browser/extensions/pending_extension_manager.cc
|
| +++ b/chrome/browser/extensions/pending_extension_manager.cc
|
| @@ -194,8 +194,12 @@ bool PendingExtensionManager::AddFromExternalUpdateUrl(
|
| // If the new location has higher priority than the location of an existing
|
| // extension, let the update process overwrite the existing extension.
|
| } else {
|
| - if (ExtensionPrefs::Get(context_)->IsExternalExtensionUninstalled(id))
|
| + // Skip the installation if the extension was removed by the user and it's
|
| + // not specified to be force-installed through the policy.
|
| + if (!Manifest::IsPolicyLocation(location) &&
|
| + ExtensionPrefs::Get(context_)->IsExternalExtensionUninstalled(id)) {
|
| return false;
|
| + }
|
|
|
| if (extension) {
|
| LOG(DFATAL) << "Trying to add extension " << id
|
|
|