Chromium Code Reviews| Index: chrome/browser/extensions/crx_installer.cc |
| =================================================================== |
| --- chrome/browser/extensions/crx_installer.cc (revision 136836) |
| +++ chrome/browser/extensions/crx_installer.cc (working copy) |
| @@ -348,12 +348,10 @@ |
| return; |
| } |
| - if (!frontend_weak_->extension_prefs()->IsExtensionAllowedByPolicy( |
| - extension_->id(), install_source_)) { |
| - ReportFailureFromUIThread(l10n_util::GetStringFUTF16( |
| - IDS_EXTENSION_CANT_INSTALL_POLICY_BLACKLIST, |
| - UTF8ToUTF16(extension_->name()), |
| - UTF8ToUTF16(extension_->id()))); |
| + string16 error; |
| + if (!frontend_weak_->extension_management_policy()->UserMayInstall( |
|
Aaron Boodman
2012/05/17 22:41:06
ExtensionSystem should own ManagementPolicy, not E
|
| + extension_->id(), install_source_, extension_->name(), &error)) { |
| + ReportFailureFromUIThread(error); |
| return; |
| } |