| Index: chrome/browser/ui/webui/plugins/plugins_handler.cc
|
| diff --git a/chrome/browser/ui/webui/plugins/plugins_handler.cc b/chrome/browser/ui/webui/plugins/plugins_handler.cc
|
| index ded2d1653d8b7ad3188e3012105cb4f839a8421a..7ce7a7c9d1e0c1f1370165a586616e145934cb6a 100644
|
| --- a/chrome/browser/ui/webui/plugins/plugins_handler.cc
|
| +++ b/chrome/browser/ui/webui/plugins/plugins_handler.cc
|
| @@ -259,11 +259,19 @@ mojo::Array<PluginDataPtr> PluginsHandler::GeneratePluginsData(
|
| GetPluginGroupEnabledMode(plugin_files, group_enabled));
|
|
|
| plugin_data->always_allowed = false;
|
| + plugin_data->trusted = false;
|
| +
|
| if (group_enabled) {
|
| - const base::DictionaryValue* whitelist =
|
| - profile->GetPrefs()->GetDictionary(
|
| - prefs::kContentSettingsPluginWhitelist);
|
| - whitelist->GetBoolean(group_identifier, &plugin_data->always_allowed);
|
| + if (plugin_metadata->GetSecurityStatus(*active_plugin) ==
|
| + PluginMetadata::SECURITY_STATUS_FULLY_TRUSTED) {
|
| + plugin_data->trusted = true;
|
| + plugin_data->always_allowed = true;
|
| + } else {
|
| + const base::DictionaryValue* whitelist =
|
| + profile->GetPrefs()->GetDictionary(
|
| + prefs::kContentSettingsPluginWhitelist);
|
| + whitelist->GetBoolean(group_identifier, &plugin_data->always_allowed);
|
| + }
|
| }
|
|
|
| plugin_data->critical = false;
|
|
|