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

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

Issue 384423002: [Canceled] Extensions: Add install_flags parameter to ManagementPolicy::UserMayLoad (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update tests Created 6 years, 5 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/installed_loader.cc
diff --git a/chrome/browser/extensions/installed_loader.cc b/chrome/browser/extensions/installed_loader.cc
index 062ef79ac7dff4035dbdb8993328fd184b9a5786..393c99b882032ae228209c684b58e2498778d658 100644
--- a/chrome/browser/extensions/installed_loader.cc
+++ b/chrome/browser/extensions/installed_loader.cc
@@ -174,7 +174,8 @@ void InstalledLoader::Load(const ExtensionInfo& info, bool write_to_prefs) {
if (extension.get()) {
Extension::DisableReason disable_reason = Extension::DISABLE_NONE;
bool force_disabled = false;
- if (!policy->UserMayLoad(extension.get(), NULL)) {
+ int install_flags = extension_prefs_->GetInstallFlags(extension->id());
+ if (!policy->UserMayLoad(extension.get(), install_flags, NULL)) {
// The error message from UserMayInstall() often contains the extension ID
// and is therefore not well suited to this UI.
error = errors::kDisabledByPolicy;
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/standard_management_policy_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698