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

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

Issue 49253005: Fetch extension blacklist states from SafeBrowsing server (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/crx_installer.cc
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
index c79a68772b20119c26a2dfc7a961d525f6d414dc..5fb9be4d496254c79a1836e17f914124198e0f8b 100644
--- a/chrome/browser/extensions/crx_installer.cc
+++ b/chrome/browser/extensions/crx_installer.cc
@@ -523,7 +523,8 @@ void CrxInstaller::OnBlacklistChecked(
blacklist_state_ = blacklist_state;
- if (blacklist_state_ == extensions::Blacklist::BLACKLISTED_MALWARE &&
+ if ((blacklist_state_ == extensions::Blacklist::BLACKLISTED_MALWARE ||
+ blacklist_state_ == extensions::Blacklist::BLACKLISTED_UNKNOWN) &&
!allow_silent_install_) {
// User tried to install a blacklisted extension. Show an error and
// refuse to install it.

Powered by Google App Engine
This is Rietveld 408576698