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

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

Issue 2004043002: Supervised Users Initiated Installs v2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kid_initiated_install
Patch Set: Fixing updates of SU initiated installs 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: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 93c7c595a9608db4cb0025a10e1f7202aef4240b..cdf2ea5b426e9bec43b522e318dc71b920b18550 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -1645,22 +1645,6 @@ void ExtensionService::CheckPermissionsIncrease(const Extension* extension,
disable_reasons |= Extension::DISABLE_PERMISSIONS_INCREASE;
if (!extension_prefs_->DidExtensionEscalatePermissions(extension->id()))
RecordPermissionMessagesHistogram(extension, "AutoDisable");
-
-#if defined(ENABLE_SUPERVISED_USERS)
- // If a custodian-installed extension is disabled for a supervised user due
- // to a permissions increase, send a request to the custodian if the
- // supervised user themselves can't re-enable the extension.
- if (extensions::util::IsExtensionSupervised(extension, profile_) &&
- extensions::util::NeedCustodianApprovalForPermissionIncrease(
- profile_) &&
- !ExtensionSyncService::Get(profile_)->HasPendingReenable(
- extension->id(), *extension->version())) {
- SupervisedUserService* supervised_user_service =
- SupervisedUserServiceFactory::GetForProfile(profile_);
- supervised_user_service->AddExtensionUpdateRequest(extension->id(),
- *extension->version());
- }
-#endif
}
if (disable_reasons != Extension::DISABLE_NONE)
extension_prefs_->SetExtensionDisabled(extension->id(), disable_reasons);

Powered by Google App Engine
This is Rietveld 408576698