| Index: chrome/browser/ui/webui/site_settings_helper.cc
|
| diff --git a/chrome/browser/ui/webui/site_settings_helper.cc b/chrome/browser/ui/webui/site_settings_helper.cc
|
| index 716baad3d1087f89e753e99151021bb8b29a4ba4..3adec20b21e613d24ae78fd1caf672d2886b6f3e 100644
|
| --- a/chrome/browser/ui/webui/site_settings_helper.cc
|
| +++ b/chrome/browser/ui/webui/site_settings_helper.cc
|
| @@ -4,6 +4,9 @@
|
|
|
| #include "chrome/browser/ui/webui/site_settings_helper.h"
|
|
|
| +#include <functional>
|
| +#include <string>
|
| +
|
| #include "base/memory/ptr_util.h"
|
| #include "base/values.h"
|
| #include "chrome/browser/permissions/chooser_context_base.h"
|
| @@ -104,6 +107,7 @@ void GetExceptionsFromHostContentSettingsMap(const HostContentSettingsMap* map,
|
| ContentSettingsType type,
|
| content::WebUI* web_ui,
|
| bool incognito,
|
| + const std::string* filter,
|
| base::ListValue* exceptions) {
|
| ContentSettingsForOneType entries;
|
| map->GetSettingsForOneType(type, std::string(), &entries);
|
| @@ -124,6 +128,9 @@ void GetExceptionsFromHostContentSettingsMap(const HostContentSettingsMap* map,
|
| if (map->is_off_the_record() && !i->incognito)
|
| continue;
|
|
|
| + if (filter && i->primary_pattern.ToString() != *filter)
|
| + continue;
|
| +
|
| all_patterns_settings[std::make_pair(i->primary_pattern, i->source)]
|
| [i->secondary_pattern] = i->setting;
|
| }
|
|
|