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

Unified Diff: services/preferences/persistent_pref_store_impl.cc

Issue 2905903002: Delete the PreferenceMACs on profile deletion. (Closed)
Patch Set: Created 3 years, 7 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: services/preferences/persistent_pref_store_impl.cc
diff --git a/services/preferences/persistent_pref_store_impl.cc b/services/preferences/persistent_pref_store_impl.cc
index f5b4ae14d6531ebcd6fce4032741eeacf8c06a93..645452d786ffc3f7eb564143f696fdd75cda0dd8 100644
--- a/services/preferences/persistent_pref_store_impl.cc
+++ b/services/preferences/persistent_pref_store_impl.cc
@@ -62,6 +62,9 @@ class PersistentPrefStoreImpl::Connection : public mojom::PersistentPrefStore {
pref_store_->SchedulePendingLossyWrites();
}
void ClearMutableValues() override { pref_store_->ClearMutableValues(); }
+ void CleanupForProfileDeletion() override {
+ pref_store_->CleanupForProfileDeletion();
+ }
void OnConnectionError() { pref_store_->OnConnectionError(this); }
@@ -183,6 +186,10 @@ void PersistentPrefStoreImpl::ClearMutableValues() {
backing_pref_store_->ClearMutableValues();
}
+void PersistentPrefStoreImpl::CleanupForProfileDeletion() {
+ backing_pref_store_->CleanupForProfileDeletion();
+}
+
void PersistentPrefStoreImpl::OnConnectionError(Connection* connection) {
connections_.erase(connection);
}

Powered by Google App Engine
This is Rietveld 408576698