| Index: chrome/browser/host_content_settings_map.cc
|
| diff --git a/chrome/browser/host_content_settings_map.cc b/chrome/browser/host_content_settings_map.cc
|
| index 611b645acb36efe96cf810dc86437357a37d676b..874223818dc7fd4abddcb336fd4fa9aecd507004 100644
|
| --- a/chrome/browser/host_content_settings_map.cc
|
| +++ b/chrome/browser/host_content_settings_map.cc
|
| @@ -406,6 +406,18 @@ void HostContentSettingsMap::SetContentSetting(const Pattern& pattern,
|
| NotifyObservers(ContentSettingsDetails(pattern));
|
| }
|
|
|
| +void HostContentSettingsMap::AddExceptionForURL(
|
| + const GURL& url,
|
| + ContentSettingsType content_type,
|
| + ContentSetting setting) {
|
| + // Make sure there is no entry that would override the pattern we are about
|
| + // to insert for exactly this URL.
|
| + SetContentSetting(Pattern::FromURLNoWildcard(url),
|
| + content_type,
|
| + CONTENT_SETTING_DEFAULT);
|
| + SetContentSetting(Pattern::FromURL(url), content_type, setting);
|
| +}
|
| +
|
| void HostContentSettingsMap::ClearSettingsForOneType(
|
| ContentSettingsType content_type) {
|
| DCHECK(kTypeNames[content_type] != NULL); // Don't call this for Geolocation.
|
|
|