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

Unified Diff: chrome/browser/prefs/tracked/pref_service_hash_store_contents.cc

Issue 329093003: Remove unloaded profile hash store initialization, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove more code. Created 6 years, 6 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/tracked/pref_service_hash_store_contents.cc
diff --git a/chrome/browser/prefs/tracked/pref_service_hash_store_contents.cc b/chrome/browser/prefs/tracked/pref_service_hash_store_contents.cc
index 5482e3607bdba4da7291219a66c552d85ff8cb18..103e3501af6b8ebd1cef9b5df02775de66667605 100644
--- a/chrome/browser/prefs/tracked/pref_service_hash_store_contents.cc
+++ b/chrome/browser/prefs/tracked/pref_service_hash_store_contents.cc
@@ -103,21 +103,6 @@ bool PrefServiceHashStoreContents::IsInitialized() const {
NULL);
}
-bool PrefServiceHashStoreContents::GetVersion(int* version) const {
- DCHECK(version);
- const base::DictionaryValue* pref_hash_data =
- pref_service_->GetDictionary(prefs::kProfilePreferenceHashes);
-
- const base::DictionaryValue* version_dict;
- return pref_hash_data->GetDictionary(kStoreVersionsDict, &version_dict) &&
- version_dict->GetIntegerWithoutPathExpansion(hash_store_id_, version);
-}
-
-void PrefServiceHashStoreContents::SetVersion(int version) {
- PrefServiceMutableDictionary(kStoreVersionsDict, pref_service_)
- ->SetIntegerWithoutPathExpansion(hash_store_id_, version);
-}
-
const base::DictionaryValue* PrefServiceHashStoreContents::GetContents() const {
const base::DictionaryValue* pref_hash_dicts =
pref_service_->GetDictionary(prefs::kProfilePreferenceHashes);

Powered by Google App Engine
This is Rietveld 408576698