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

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

Issue 353493002: Apps&Extensions for supervised users: Add Extension::WAS_INSTALLED_BY_CUSTODIAN flag and proto entry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update test Created 6 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 ee810bfcd62dd2271a6cab07763deed1856111c7..43ea865acd487a9d185b5900b4d1bdf72e07fdf0 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -581,6 +581,9 @@ bool ExtensionService::UpdateExtension(const std::string& id,
if (extension && extension->was_installed_by_oem())
creation_flags |= Extension::WAS_INSTALLED_BY_OEM;
+ if (extension && extension->was_installed_by_custodian())
+ creation_flags |= Extension::WAS_INSTALLED_BY_CUSTODIAN;
+
if (extension) {
installer->set_is_ephemeral(extension_prefs_->IsEphemeralApp(id));
installer->set_do_not_sync(extension_prefs_->DoNotSync(id));

Powered by Google App Engine
This is Rietveld 408576698