Index: chrome/browser/extensions/extension_prefs.cc |
=================================================================== |
--- chrome/browser/extensions/extension_prefs.cc (revision 56844) |
+++ chrome/browser/extensions/extension_prefs.cc (working copy) |
@@ -241,6 +241,10 @@ |
const std::string& extension_id) { |
std::string string_value; |
+ const ListValue* blacklist = prefs_->GetList(kExtensionInstallDenyList); |
+ if (!blacklist || blacklist->empty()) |
+ return true; |
+ |
// Check the whitelist first. |
const ListValue* whitelist = prefs_->GetList(kExtensionInstallAllowList); |
if (whitelist) { |
@@ -254,7 +258,6 @@ |
} |
// Then check the blacklist (the admin blacklist, not the Google blacklist). |
- const ListValue* blacklist = prefs_->GetList(kExtensionInstallDenyList); |
if (blacklist) { |
for (ListValue::const_iterator it = blacklist->begin(); |
it != blacklist->end(); ++it) { |