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

Unified Diff: extensions/common/extension.h

Issue 2054773002: Replace the WAS_INSTALLED_BY_CUSTODIAN creation flag with a pref (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Commenting out WAS_INSTALLED_BY_CUSTODIAN flag Created 4 years, 6 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: extensions/common/extension.h
diff --git a/extensions/common/extension.h b/extensions/common/extension.h
index 278a8c488bb30f4de4ea0ca92b198125151cb939..a302c764e9b4462ecce4460c069c4f895424a4a2 100644
--- a/extensions/common/extension.h
+++ b/extensions/common/extension.h
@@ -154,7 +154,8 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// |WAS_INSTALLED_BY_CUSTODIAN| means this extension was installed by the
// custodian of a supervised user.
- WAS_INSTALLED_BY_CUSTODIAN = 1 << 11,
+ // DEPRECATED:: WAS_INSTALLED_BY_CUSTODIAN is now stored as a pref instead.
+ // WAS_INSTALLED_BY_CUSTODIAN= 1 << 11,
// |MAY_BE_UNTRUSTED| indicates that this extension came from a potentially
// unsafe source (e.g., sideloaded from a local CRX file via the Windows
@@ -331,9 +332,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
bool was_installed_by_oem() const {
return (creation_flags_ & WAS_INSTALLED_BY_OEM) != 0;
}
- bool was_installed_by_custodian() const {
- return (creation_flags_ & WAS_INSTALLED_BY_CUSTODIAN) != 0;
- }
// Type-related queries.
bool is_app() const;

Powered by Google App Engine
This is Rietveld 408576698