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

Unified Diff: extensions/browser/extension_prefs.h

Issue 714133002: Add more management policy checking after extension installed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove two tests 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
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_prefs.h
diff --git a/extensions/browser/extension_prefs.h b/extensions/browser/extension_prefs.h
index cdfb278d35963e8b7b0de81dfbc8b20eb1e93d4a..91a8dab8acfff6252fc5475a49ff2f09866a4e69 100644
--- a/extensions/browser/extension_prefs.h
+++ b/extensions/browser/extension_prefs.h
@@ -262,6 +262,7 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
Extension::DisableReason disable_reason) const;
void AddDisableReason(const std::string& extension_id,
Extension::DisableReason disable_reason);
+ void AddDisableReasons(const std::string& extension_id, int disable_reasons);
void RemoveDisableReason(const std::string& extension_id,
Extension::DisableReason disable_reason);
void ClearDisableReasons(const std::string& extension_id);
@@ -601,9 +602,9 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
// existing reason, or clear all reasons. Notifies observers if the set of
// DisableReasons has changed.
// If |change| is DISABLE_REASON_CLEAR, then |reason| is ignored.
- void ModifyDisableReason(const std::string& extension_id,
- Extension::DisableReason reason,
- DisableReasonChange change);
+ void ModifyDisableReasons(const std::string& extension_id,
+ int reasons,
+ DisableReasonChange change);
// Fix missing preference entries in the extensions that are were introduced
// in a later Chrome version.
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698