Index: components/content_settings/core/browser/host_content_settings_map.h |
diff --git a/components/content_settings/core/browser/host_content_settings_map.h b/components/content_settings/core/browser/host_content_settings_map.h |
index ec33722e9996e4b9250274a0746a06ce9b1f436b..9dae88ff4054490b7d59c7dba4e46040f46fc41a 100644 |
--- a/components/content_settings/core/browser/host_content_settings_map.h |
+++ b/components/content_settings/core/browser/host_content_settings_map.h |
@@ -280,6 +280,7 @@ class HostContentSettingsMap : public content_settings::Observer, |
private: |
friend class base::RefCountedThreadSafe<HostContentSettingsMap>; |
+ friend class HostContentSettingsMapTest_MigrateDomainScopedSettings_Test; |
friend class HostContentSettingsMapTest_MigrateKeygenSettings_Test; |
friend class content_settings::TestUtils; |
@@ -311,6 +312,12 @@ class HostContentSettingsMap : public content_settings::Observer, |
// leave in some code to remove old-format settings for a long time. |
void MigrateKeygenSettings(); |
+ // Migrate old domain scoped ALLOW settings to be origin scoped for |
+ // ContentSettingsTypes which are domain scoped. Only narrow down ALLOW |
+ // domain settings to origins so that there will not cause privacy/security |
raymes
2016/06/20 04:03:26
nit: there->this
lshang
2016/06/23 01:32:31
Done.
|
+ // issues. |
raymes
2016/06/20 04:03:26
We should add a similar TODO to the above function
lshang
2016/06/23 01:32:31
Done.
|
+ void MigrateDomainScopedSettings(); |
+ |
// Collect UMA data about the number of exceptions. |
void RecordNumberOfExceptions(); |