Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1612)

Unified Diff: chrome/browser/extensions/extension_service.cc

Issue 24365004: Add EXTERNAL_POLICY to list of possible extension locations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 500e5b80fd08659e88ecde78193050ba3c16b45c..b131c85870f44ca4f1e3feb799db89e2f5d8d476 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -2475,8 +2475,10 @@ void ExtensionService::OnExtensionInstalled(
// Certain extension locations are specific enough that we can
// auto-acknowledge any extension that came from one of them.
- if (extension->location() == Manifest::EXTERNAL_POLICY_DOWNLOAD)
+ if (extension->location() == Manifest::EXTERNAL_POLICY ||
+ extension->location() == Manifest::EXTERNAL_POLICY_DOWNLOAD) {
AcknowledgeExternalExtension(extension->id());
+ }
const Extension::State initial_state =
initial_enable ? Extension::ENABLED : Extension::DISABLED;
if (ShouldDelayExtensionUpdate(id, wait_for_idle)) {

Powered by Google App Engine
This is Rietveld 408576698