summaryrefslogtreecommitdiffstats
path: root/extensions/browser/install
diff options
context:
space:
mode:
authorginkage <ginkage@chromium.org>2015-01-08 03:01:53 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-08 11:03:09 +0000
commit47e8c1e1f09b29916c3bfeff25a00f42153c5e92 (patch)
treedad163dab66d468c2cad68da48f019448f3fb452 /extensions/browser/install
parent6cd6f6e5dae66f9d74076273180ac67b701956a0 (diff)
downloadchromium_src-47e8c1e1f09b29916c3bfeff25a00f42153c5e92.zip
chromium_src-47e8c1e1f09b29916c3bfeff25a00f42153c5e92.tar.gz
chromium_src-47e8c1e1f09b29916c3bfeff25a00f42153c5e92.tar.bz2
Do not remove extension from cache if it was caused by policy.
BUG=338827 Review URL: https://codereview.chromium.org/812403003 Cr-Commit-Position: refs/heads/master@{#310471}
Diffstat (limited to 'extensions/browser/install')
-rw-r--r--extensions/browser/install/crx_installer_error.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/extensions/browser/install/crx_installer_error.h b/extensions/browser/install/crx_installer_error.h
index 0376a79..47d0932 100644
--- a/extensions/browser/install/crx_installer_error.h
+++ b/extensions/browser/install/crx_installer_error.h
@@ -13,7 +13,11 @@ namespace extensions {
class CrxInstallerError {
public:
// Typed errors that need to be handled specially by clients.
- enum Type { ERROR_NONE, ERROR_OFF_STORE, ERROR_OTHER };
+ // ERROR_OFF_STORE for disallowed off-store installations.
+ // ERROR_DECLINED for situations when a .crx file seems to be OK, but there
+ // are some policy restrictions or unmet dependencies that prevent it from
+ // being installed.
+ enum Type { ERROR_NONE, ERROR_OFF_STORE, ERROR_DECLINED, ERROR_OTHER };
CrxInstallerError() : type_(ERROR_NONE) {}