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

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: Comments addressed. 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 96e8fbd6fd6918733dd15fac611428dbcbe065cf..23f684e72e11aea79962b416b419b31ecdd8aee7 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -2493,7 +2493,7 @@ 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 (Manifest::IsPolicyLocation(extension->location()))
AcknowledgeExternalExtension(extension->id());
const Extension::State initial_state =
initial_enable ? Extension::ENABLED : Extension::DISABLED;

Powered by Google App Engine
This is Rietveld 408576698