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

Unified Diff: chrome/browser/prefs/profile_pref_store_manager.cc

Issue 2111253002: Clean up old legacy preference migration logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove now unused kHashStoreId in unit test 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: chrome/browser/prefs/profile_pref_store_manager.cc
diff --git a/chrome/browser/prefs/profile_pref_store_manager.cc b/chrome/browser/prefs/profile_pref_store_manager.cc
index d1cca84046663e7af2373bfa230a157d36622b35..faba02c8c1afb9a9bf0bc892bdd978d658fd4eb2 100644
--- a/chrome/browser/prefs/profile_pref_store_manager.cc
+++ b/chrome/browser/prefs/profile_pref_store_manager.cc
@@ -20,7 +20,6 @@
#include "components/prefs/persistent_pref_store.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/user_prefs/tracked/pref_hash_store_impl.h"
-#include "components/user_prefs/tracked/pref_service_hash_store_contents.h"
#include "components/user_prefs/tracked/segregated_pref_store.h"
#include "components/user_prefs/tracked/tracked_preferences_migration.h"
@@ -63,21 +62,11 @@ ProfilePrefStoreManager::ProfilePrefStoreManager(
ProfilePrefStoreManager::~ProfilePrefStoreManager() {}
// static
-void ProfilePrefStoreManager::RegisterPrefs(PrefRegistrySimple* registry) {
- PrefServiceHashStoreContents::RegisterPrefs(registry);
-}
-
-// static
void ProfilePrefStoreManager::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
PrefHashFilter::RegisterProfilePrefs(registry);
}
-// static
-void ProfilePrefStoreManager::ResetAllPrefHashStores(PrefService* local_state) {
- PrefServiceHashStoreContents::ResetAllPrefHashStores(local_state);
-}
-
// static
base::Time ProfilePrefStoreManager::GetResetTime(PrefService* pref_service) {
return PrefHashFilter::GetResetTime(pref_service);
@@ -150,8 +139,6 @@ PersistentPrefStore* ProfilePrefStoreManager::CreateProfilePrefStore(
base::Bind(&JsonPrefStore::RegisterOnNextSuccessfulWriteCallback,
protected_pref_store->AsWeakPtr()),
GetPrefHashStore(false), GetPrefHashStore(true),
- std::unique_ptr<HashStoreContents>(new PrefServiceHashStoreContents(
- profile_path_.AsUTF8Unsafe(), local_state_)),
raw_unprotected_pref_hash_filter, raw_protected_pref_hash_filter);
return new SegregatedPrefStore(unprotected_pref_store, protected_pref_store,
@@ -195,24 +182,6 @@ bool ProfilePrefStoreManager::InitializePrefsFromMasterPrefs(
return success;
}
-PersistentPrefStore*
-ProfilePrefStoreManager::CreateDeprecatedCombinedProfilePrefStore(
- const scoped_refptr<base::SequencedTaskRunner>& io_task_runner) {
- std::unique_ptr<PrefFilter> pref_filter;
- if (kPlatformSupportsPreferenceTracking) {
- std::unique_ptr<PrefHashStoreImpl> pref_hash_store_impl(
- new PrefHashStoreImpl(seed_, device_id_, true));
- pref_hash_store_impl->set_legacy_hash_store_contents(
- std::unique_ptr<HashStoreContents>(new PrefServiceHashStoreContents(
- profile_path_.AsUTF8Unsafe(), local_state_)));
- pref_filter.reset(new PrefHashFilter(
- std::move(pref_hash_store_impl), tracking_configuration_,
- base::Closure(), NULL, reporting_ids_count_, false));
- }
- return new JsonPrefStore(profile_path_.Append(chrome::kPreferencesFilename),
- io_task_runner.get(), std::move(pref_filter));
-}
-
std::unique_ptr<PrefHashStore> ProfilePrefStoreManager::GetPrefHashStore(
bool use_super_mac) {
DCHECK(kPlatformSupportsPreferenceTracking);
« no previous file with comments | « chrome/browser/prefs/profile_pref_store_manager.h ('k') | chrome/browser/prefs/profile_pref_store_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698