| 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..8c3f17a12a67d121782945d3c7564becf99b7c8c 100644
|
| --- a/chrome/browser/ui/webui/plugins/plugins_handler.cc
|
| +++ b/chrome/browser/ui/webui/plugins/plugins_handler.cc
|
| @@ -163,10 +163,12 @@ void PluginsHandler::SaveShowDetailsToPrefs(bool details_mode) {
|
| void PluginsHandler::SetPluginAlwaysAllowed(const mojo::String& plugin,
|
| bool allowed) {
|
| Profile* profile = Profile::FromWebUI(web_ui_);
|
| - HostContentSettingsMapFactory::GetForProfile(profile)->SetContentSetting(
|
| - ContentSettingsPattern::Wildcard(), ContentSettingsPattern::Wildcard(),
|
| - CONTENT_SETTINGS_TYPE_PLUGINS, plugin.get(),
|
| - allowed ? CONTENT_SETTING_ALLOW : CONTENT_SETTING_DEFAULT);
|
| + HostContentSettingsMapFactory::GetForProfile(profile)
|
| + ->SetContentSettingCustomScope(
|
| + ContentSettingsPattern::Wildcard(),
|
| + ContentSettingsPattern::Wildcard(), CONTENT_SETTINGS_TYPE_PLUGINS,
|
| + plugin.get(),
|
| + allowed ? CONTENT_SETTING_ALLOW : CONTENT_SETTING_DEFAULT);
|
|
|
| // Keep track of the whitelist separately, so that we can distinguish plugins
|
| // whitelisted by the user from automatically whitelisted ones.
|
|
|