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

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

Issue 405433003: Apps&Extensions for supervised users: Allow the custodian to remotely uninstall extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add test Created 6 years, 5 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_sync_service.cc
diff --git a/chrome/browser/extensions/extension_sync_service.cc b/chrome/browser/extensions/extension_sync_service.cc
index 95222d401568cc787be27bfecc1f316a161ddc94..5995394dfe22f9b15410b01d6a098f6f6a6173c4 100644
--- a/chrome/browser/extensions/extension_sync_service.cc
+++ b/chrome/browser/extensions/extension_sync_service.cc
@@ -450,10 +450,13 @@ bool ExtensionSyncService::ProcessExtensionSyncDataHelper(
// Handle uninstalls first.
if (extension_sync_data.uninstalled()) {
+ extensions::UninstallReason reason =
+ extension_sync_data.installed_by_custodian() ?
+ extensions::UNINSTALL_REASON_SYNC_BY_CUSTODIAN :
+ extensions::UNINSTALL_REASON_SYNC;
if (!extension_service_->UninstallExtensionHelper(
- extension_service_, id, extensions::UNINSTALL_REASON_SYNC)) {
- LOG(WARNING) << "Could not uninstall extension " << id
- << " for sync";
+ extension_service_, id, reason)) {
+ LOG(WARNING) << "Could not uninstall extension " << id << " for sync";
}
return true;
}

Powered by Google App Engine
This is Rietveld 408576698