Index: chrome/browser/extensions/extension_service.h |
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h |
index 86dea9dfad995bb5c948dc5f557b052ca2b2f45d..7a0d1d2b1a8e7e957c1134c0937c1bdabb6b7503 100644 |
--- a/chrome/browser/extensions/extension_service.h |
+++ b/chrome/browser/extensions/extension_service.h |
@@ -541,9 +541,11 @@ class ExtensionService |
// Helper that updates the active extension list used for crash reporting. |
void UpdateActiveExtensionsInCrashReporter(); |
- // Helper to determine whether we should initially enable an installed |
- // (or upgraded) extension. |
- bool ShouldEnableOnInstall(const extensions::Extension* extension); |
+ // Helper to get the disable reason for an installed (or upgraded) extension. |
+ // A return value of Extension::DISABLE_NONE indicates that we should enable |
+ // this extension initially. |
+ extensions::Extension::DisableReason GetDisableReasonOnInstalled( |
+ const extensions::Extension* extension); |
// Helper to determine if updating an extensions should proceed immediately, |
// or if we should delay the update until further notice. |
@@ -729,6 +731,8 @@ class ExtensionService |
GreylistDontEnableManuallyDisabled); |
FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
GreylistUnknownDontChange); |
+ FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
+ ManagementPolicyProhibitsEnableOnInstalled); |
DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
}; |