diff options
author | gfeher@chromium.org <gfeher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-25 10:50:06 +0000 |
---|---|---|
committer | gfeher@chromium.org <gfeher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-25 10:50:06 +0000 |
commit | 04cb754ccb958646aceaba6df6c6f0b80eaf53c0 (patch) | |
tree | 19ba905077c022b557c30e975730c0db9d849a31 /chrome/browser/extensions/extension_updater.cc | |
parent | 2efebbbf89225263ca314c344ed314e4b9f8bb27 (diff) | |
download | chromium_src-04cb754ccb958646aceaba6df6c6f0b80eaf53c0.zip chromium_src-04cb754ccb958646aceaba6df6c6f0b80eaf53c0.tar.gz chromium_src-04cb754ccb958646aceaba6df6c6f0b80eaf53c0.tar.bz2 |
Introduce new location for managed extensions
Extensions that are silent-installed by an admin policy will have EXTERNAL_POLICY_DOWNLOAD set as their locations. It will not be possible to uninstall them and they will be silently updated.
BUG=59782
TEST=none
Review URL: http://codereview.chromium.org/3938005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63718 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_updater.cc')
-rw-r--r-- | chrome/browser/extensions/extension_updater.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_updater.cc b/chrome/browser/extensions/extension_updater.cc index 0af7600..abdba15 100644 --- a/chrome/browser/extensions/extension_updater.cc +++ b/chrome/browser/extensions/extension_updater.cc @@ -232,9 +232,7 @@ void ManifestFetchesBuilder::AddExtensionData( PendingExtensionInfo::ExpectedCrxType crx_type, GURL update_url) { - // Only internal and external extensions can be autoupdated. - if (location != Extension::INTERNAL && - !Extension::IsExternalLocation(location)) { + if (!Extension::IsAutoUpdateableLocation(location)) { return; } |