Chromium Code Reviews| Index: chrome/browser/extensions/unpacked_installer.cc |
| diff --git a/chrome/browser/extensions/unpacked_installer.cc b/chrome/browser/extensions/unpacked_installer.cc |
| index f812a2f5f368e2391f6404ffb8128699c844337f..bc937bd4579510f671141238e374a90a58977c7c 100644 |
| --- a/chrome/browser/extensions/unpacked_installer.cc |
| +++ b/chrome/browser/extensions/unpacked_installer.cc |
| @@ -258,9 +258,15 @@ int UnpackedInstaller::GetFlags() { |
| if (prefs->HasAllowFileAccessSetting(id)) |
| allow_file_access = prefs->AllowFileAccess(id); |
| + bool installed_by_custodian = false; |
| + if (prefs->HasIsInstalledByCustodianSetting(id)) |
| + installed_by_custodian = prefs->IsInstalledByCustodian(id); |
|
Marc Treib
2016/06/13 09:37:14
If this is unset, it should default to false anywa
mamir
2016/06/13 11:30:17
Done.
|
| + |
| int result = Extension::FOLLOW_SYMLINKS_ANYWHERE; |
| if (allow_file_access) |
| result |= Extension::ALLOW_FILE_ACCESS; |
| + if (installed_by_custodian) |
| + result |= Extension::WAS_INSTALLED_BY_CUSTODIAN; |
| if (require_modern_manifest_version_) |
| result |= Extension::REQUIRE_MODERN_MANIFEST_VERSION; |