Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Unified Diff: components/content_settings/core/browser/host_content_settings_map.h

Issue 2158743002: Register a pref to control migration status (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@change_scoping_type
Patch Set: add some comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {

Powered by Google App Engine
This is Rietveld 408576698