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 f1e45e2c0bf07721c599fb198e5879b8bc973c9c..73a3526fa4738d71d27365275f866465005da302 100644 |
--- a/components/content_settings/core/browser/host_content_settings_map.h |
+++ b/components/content_settings/core/browser/host_content_settings_map.h |
@@ -39,6 +39,19 @@ class ObservableProvider; |
class ProviderInterface; |
class PrefProvider; |
class TestUtils; |
+ |
+// Enum describing status of migration process. This is to ensure that migration |
raymes
2016/07/19 01:48:15
nit: Enum describing the status of domain to origi
lshang
2016/07/20 06:16:20
Done.
|
+// only done once. |
+enum ContentSettingMigrationStatus { |
raymes
2016/07/19 01:48:15
We should be more specific about what migration th
lshang
2016/07/20 06:16:21
Done.
|
+ // Haven't been migrated at all. |
+ NOT_MIGRATED, |
+ // Have done migration in the constructor of HostContentSettingsMap. |
+ DONE_IN_HCSM, |
raymes
2016/07/19 01:48:15
I would just differentiate MIGRATED_BEFORE_SYNC an
lshang
2016/07/19 07:45:56
I think we need to have three states here:
- have
lshang
2016/07/20 06:16:20
Done.
|
+ // Have done migration both in HostContentSettingsMap construction and sync |
+ // process(this is a clean up after sync). Migration is all finished at this |
+ // stage. |
+ DONE_IN_HCSM_AND_SYNC, |
+}; |
raymes
2016/07/19 01:48:15
We could move this into the .cc file
lshang
2016/07/20 06:16:21
Done.
|
} |
namespace user_prefs { |