Index: chrome/browser/ui/webui/extensions/extension_settings_handler.cc |
diff --git a/chrome/browser/ui/webui/extensions/extension_settings_handler.cc b/chrome/browser/ui/webui/extensions/extension_settings_handler.cc |
index 2b6b1ac1c1a9f3107f4cf357157fffdf3d445725..a2118e906550d8044f28a6367149875fa7ac1ae3 100644 |
--- a/chrome/browser/ui/webui/extensions/extension_settings_handler.cc |
+++ b/chrome/browser/ui/webui/extensions/extension_settings_handler.cc |
@@ -69,6 +69,7 @@ |
#include "content/public/browser/web_contents_view.h" |
#include "content/public/browser/web_ui.h" |
#include "content/public/browser/web_ui_data_source.h" |
+#include "extensions/browser/blacklist_state.h" |
#include "extensions/browser/extension_error.h" |
#include "extensions/browser/extension_registry.h" |
#include "extensions/browser/lazy_background_task_queue.h" |
@@ -256,6 +257,29 @@ base::DictionaryValue* ExtensionSettingsHandler::CreateExtensionDetailValue( |
} |
extension_data->SetString("locationText", location_text); |
+ base::string16 blacklist_text; |
+ switch (extension_service_->extension_prefs()->GetExtensionBlacklistState( |
+ extension->id())) { |
+ case BLACKLISTED_SECURITY_VULNERABILITY: |
+ blacklist_text = l10n_util::GetStringUTF16( |
+ IDS_OPTIONS_BLACKLISTED_SECURITY_VULNERABILITY); |
+ break; |
+ |
+ case BLACKLISTED_CWS_POLICY_VIOLATION: |
+ blacklist_text = l10n_util::GetStringUTF16( |
+ IDS_OPTIONS_BLACKLISTED_CWS_POLICY_VIOLATION); |
+ break; |
+ |
+ case BLACKLISTED_POTENTIALLY_UNWANTED: |
+ blacklist_text = l10n_util::GetStringUTF16( |
+ IDS_OPTIONS_BLACKLISTED_POTENTIALLY_UNWANTED); |
+ break; |
+ |
+ default: |
+ break; |
+ } |
+ extension_data->SetString("blacklistText", blacklist_text); |
+ |
// Force unpacked extensions to show at the top. |
if (Manifest::IsUnpackedLocation(extension->location())) |
extension_data->SetInteger("order", 1); |