summaryrefslogtreecommitdiffstats
path: root/chrome/browser/background
diff options
context:
space:
mode:
authorbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-26 18:50:12 +0000
committerbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-26 18:50:12 +0000
commit9bb69163f491cc1f1e3f412442a6ca0ad1a947fb (patch)
treedaf136a8e2ce3acc3d95d4c32462d3a88ff103b4 /chrome/browser/background
parent5d55615db4d457399c2a3c3b06e913f422bc3bbe (diff)
downloadchromium_src-9bb69163f491cc1f1e3f412442a6ca0ad1a947fb.zip
chromium_src-9bb69163f491cc1f1e3f412442a6ca0ad1a947fb.tar.gz
chromium_src-9bb69163f491cc1f1e3f412442a6ca0ad1a947fb.tar.bz2
Add EXTERNAL_POLICY to list of possible extension locations
This CL adds a new extension location, EXTERNAL_POLICY. This will be used for CRX files that are force-installed through policy but instead of being downloaded and installed directly, are cached on disk first. BUG=287802 TEST=Manual Review URL: https://codereview.chromium.org/24365004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225526 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/background')
-rw-r--r--chrome/browser/background/background_contents_service.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc
index 9e2230f..9ab995c 100644
--- a/chrome/browser/background/background_contents_service.cc
+++ b/chrome/browser/background/background_contents_service.cc
@@ -409,8 +409,8 @@ void BackgroundContentsService::Observe(
if (!extension)
break;
- const bool force_installed = extension->location() ==
- extensions::Manifest::EXTERNAL_POLICY_DOWNLOAD;
+ const bool force_installed =
+ extensions::Manifest::IsPolicyLocation(extension->location());
if (!force_installed) {
// When an extension crashes, EXTENSION_PROCESS_TERMINATED is followed
// by an EXTENSION_UNLOADED notification. This UNLOADED signal causes