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

Side by Side Diff: services/preferences/persistent_pref_store_impl.cc

Issue 2905903002: Delete the PreferenceMACs on profile deletion. (Closed)
Patch Set: Update comments Created 3 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/preferences/persistent_pref_store_impl.h" 5 #include "services/preferences/persistent_pref_store_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 observer_->OnPrefsChanged(std::move(updates)); 129 observer_->OnPrefsChanged(std::move(updates));
130 } 130 }
131 131
132 void CommitPendingWrite(CommitPendingWriteCallback done_callback) override { 132 void CommitPendingWrite(CommitPendingWriteCallback done_callback) override {
133 pref_store_->CommitPendingWrite(std::move(done_callback)); 133 pref_store_->CommitPendingWrite(std::move(done_callback));
134 } 134 }
135 void SchedulePendingLossyWrites() override { 135 void SchedulePendingLossyWrites() override {
136 pref_store_->SchedulePendingLossyWrites(); 136 pref_store_->SchedulePendingLossyWrites();
137 } 137 }
138 void ClearMutableValues() override { pref_store_->ClearMutableValues(); } 138 void ClearMutableValues() override { pref_store_->ClearMutableValues(); }
139 void OnStoreDeletionFromDisk() override {
140 pref_store_->OnStoreDeletionFromDisk();
141 }
139 142
140 void OnConnectionError() { pref_store_->OnConnectionError(this); } 143 void OnConnectionError() { pref_store_->OnConnectionError(this); }
141 144
142 // Owns |this|. 145 // Owns |this|.
143 PersistentPrefStoreImpl* const pref_store_; 146 PersistentPrefStoreImpl* const pref_store_;
144 147
145 mojo::Binding<mojom::PersistentPrefStore> binding_; 148 mojo::Binding<mojom::PersistentPrefStore> binding_;
146 mojom::PrefStoreObserverPtr observer_; 149 mojom::PrefStoreObserverPtr observer_;
147 const ObservedPrefs observed_keys_; 150 const ObservedPrefs observed_keys_;
148 151
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 } 277 }
275 278
276 void PersistentPrefStoreImpl::SchedulePendingLossyWrites() { 279 void PersistentPrefStoreImpl::SchedulePendingLossyWrites() {
277 backing_pref_store_->SchedulePendingLossyWrites(); 280 backing_pref_store_->SchedulePendingLossyWrites();
278 } 281 }
279 282
280 void PersistentPrefStoreImpl::ClearMutableValues() { 283 void PersistentPrefStoreImpl::ClearMutableValues() {
281 backing_pref_store_->ClearMutableValues(); 284 backing_pref_store_->ClearMutableValues();
282 } 285 }
283 286
287 void PersistentPrefStoreImpl::OnStoreDeletionFromDisk() {
288 backing_pref_store_->OnStoreDeletionFromDisk();
289 }
290
284 void PersistentPrefStoreImpl::OnConnectionError(Connection* connection) { 291 void PersistentPrefStoreImpl::OnConnectionError(Connection* connection) {
285 connections_.erase(connection); 292 connections_.erase(connection);
286 } 293 }
287 294
288 } // namespace prefs 295 } // namespace prefs
OLDNEW
« no previous file with comments | « services/preferences/persistent_pref_store_impl.h ('k') | services/preferences/pref_store_consistency_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698