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

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

Issue 714133002: Add more management policy checking after extension installed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix reason last Created 6 years, 1 month 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.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);
};
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | chrome/browser/extensions/extension_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698