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

Unified Diff: services/preferences/persistent_pref_store_impl.cc

Issue 2905903002: Delete the PreferenceMACs on profile deletion. (Closed)
Patch Set: Fix to get OSX-only ActiveProfileDeletedNextProfileDeletedToo test to pass Created 3 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: 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 8df4fe60ae2c307968978a1ec5492f6acea3f78e..5df981f7ab357de00bd292a2244dabbd7fe001df 100644
--- a/services/preferences/persistent_pref_store_impl.cc
+++ b/services/preferences/persistent_pref_store_impl.cc
@@ -136,6 +136,9 @@ class PersistentPrefStoreImpl::Connection : public mojom::PersistentPrefStore {
pref_store_->SchedulePendingLossyWrites();
}
void ClearMutableValues() override { pref_store_->ClearMutableValues(); }
+ void OnStoreDeletionFromDisk() override {
+ pref_store_->OnStoreDeletionFromDisk();
+ }
void OnConnectionError() { pref_store_->OnConnectionError(this); }
@@ -263,6 +266,10 @@ void PersistentPrefStoreImpl::ClearMutableValues() {
backing_pref_store_->ClearMutableValues();
}
+void PersistentPrefStoreImpl::OnStoreDeletionFromDisk() {
+ backing_pref_store_->OnStoreDeletionFromDisk();
+}
+
void PersistentPrefStoreImpl::OnConnectionError(Connection* connection) {
connections_.erase(connection);
}

Powered by Google App Engine
This is Rietveld 408576698