diff options
author | mek@chromium.org <mek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-02 02:26:03 +0000 |
---|---|---|
committer | mek@chromium.org <mek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-02 02:26:03 +0000 |
commit | 61f772399ee121198d514aba8fe292f149abe9c9 (patch) | |
tree | e92fd69e756c851b4711b013ce3ddfd725414c42 /extensions/common | |
parent | b6a0361a386f69c58f7c8e1d7a44d5cc116a6ec6 (diff) | |
download | chromium_src-61f772399ee121198d514aba8fe292f149abe9c9.zip chromium_src-61f772399ee121198d514aba8fe292f149abe9c9.tar.gz chromium_src-61f772399ee121198d514aba8fe292f149abe9c9.tar.bz2 |
Add EXTERNAL_COMPONENT location to IsAutoUpdateableLocation.
Without adding it here ExtensionUpdater would always refuse to install any extensions from this location.
BUG=313797
Review URL: https://codereview.chromium.org/55023004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232562 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common')
-rw-r--r-- | extensions/common/manifest.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/extensions/common/manifest.h b/extensions/common/manifest.h index ef76406..f7108f88 100644 --- a/extensions/common/manifest.h +++ b/extensions/common/manifest.h @@ -76,7 +76,8 @@ class Manifest { location == EXTERNAL_REGISTRY || location == EXTERNAL_PREF_DOWNLOAD || location == EXTERNAL_POLICY || - location == EXTERNAL_POLICY_DOWNLOAD; + location == EXTERNAL_POLICY_DOWNLOAD || + location == EXTERNAL_COMPONENT; } // Whether the |location| is unpacked (no CRX) or not. @@ -94,7 +95,9 @@ class Manifest { // Whether the |location| is a source of extensions force-installed through // policy. static inline bool IsPolicyLocation(Location location) { - return location == EXTERNAL_POLICY || location == EXTERNAL_POLICY_DOWNLOAD; + return location == EXTERNAL_POLICY || + location == EXTERNAL_POLICY_DOWNLOAD || + location == EXTERNAL_COMPONENT; } // Unpacked extensions start off with file access since they are a developer |