const GURL& update_url,
PendingExtensionInfo::ShouldAllowInstallPredicate should_allow_install,
bool install_silently,
- bool remote_install) {
+ bool remote_install,
+ bool installed_by_custodian) {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
if (ExtensionRegistry::Get(context_)->GetExtensionById(
return false;
}
+ int creation_flags = Extension::NO_FLAGS;
+ if (installed_by_custodian) {
+ creation_flags |= Extension::WAS_INSTALLED_BY_CUSTODIAN;
+ }
+
static const bool kIsFromSync = true;
static const Manifest::Location kSyncLocation = Manifest::INTERNAL;
static const bool kMarkAcknowledged = false;
kIsFromSync,
install_silently,
kSyncLocation,
- Extension::NO_FLAGS,
+ creation_flags,
kMarkAcknowledged,
remote_install);
}