Chromium Code Reviews| Index: chrome/browser/extensions/installed_loader.cc |
| diff --git a/chrome/browser/extensions/installed_loader.cc b/chrome/browser/extensions/installed_loader.cc |
| index 197410b5c9b9e188108ab09c1c440e43e1b9a9df..96dd0b63fcf6f8f268c6a31bef7d2656cc8211f2 100644 |
| --- a/chrome/browser/extensions/installed_loader.cc |
| +++ b/chrome/browser/extensions/installed_loader.cc |
| @@ -609,6 +609,12 @@ int InstalledLoader::GetCreationFlags(const ExtensionInfo* info) { |
| flags |= Extension::REQUIRE_KEY; |
| if (extension_prefs_->AllowFileAccess(info->extension_id)) |
| flags |= Extension::ALLOW_FILE_ACCESS; |
| + |
| + bool installed_by_custodian = util::WasInstalledByCustodian( |
| + info->extension_id, extension_service_->profile()); |
|
Devlin
2016/06/15 00:30:36
is this git cl formatted?
mamir
2016/06/15 09:54:41
Yes.
|
| + if (installed_by_custodian) |
| + flags |= Extension::WAS_INSTALLED_BY_CUSTODIAN; |
| + |
| return flags; |
| } |