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

Unified Diff: chrome/browser/extensions/extension_util.cc

Issue 2396903002: Supervised Users always need custodian approval for permission increase (Closed)
Patch Set: Remove deleted method from the header file. Created 4 years, 2 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
« no previous file with comments | « chrome/browser/extensions/extension_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_util.cc
diff --git a/chrome/browser/extensions/extension_util.cc b/chrome/browser/extensions/extension_util.cc
index 3260651a105adf19ac22c6bbf04f918c17c5fda9..df5aeb7b109a76f8b61375eddbb4767c58daf385 100644
--- a/chrome/browser/extensions/extension_util.cc
+++ b/chrome/browser/extensions/extension_util.cc
@@ -44,10 +44,6 @@ namespace extensions {
namespace util {
namespace {
-
-const char kSupervisedUserExtensionPermissionIncreaseFieldTrialName[] =
- "SupervisedUserExtensionPermissionIncrease";
-
// The entry into the prefs used to flag an extension as installed by custodian.
// It is relevant only for supervised users.
const char kWasInstalledByCustodianPrefName[] = "was_installed_by_custodian";
@@ -356,17 +352,5 @@ bool IsExtensionSupervised(const Extension* extension, Profile* profile) {
profile->IsSupervised();
}
-bool NeedCustodianApprovalForPermissionIncrease(const Profile* profile) {
- if (!profile->IsSupervised())
- return false;
- // Query the trial group name first, to make sure it's properly initialized.
- base::FieldTrialList::FindFullName(
- kSupervisedUserExtensionPermissionIncreaseFieldTrialName);
- std::string value = variations::GetVariationParamValue(
- kSupervisedUserExtensionPermissionIncreaseFieldTrialName,
- profile->IsChild() ? "child_account" : "legacy_supervised_user");
- return value == "true";
-}
-
} // namespace util
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/extension_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698