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

Unified Diff: services/preferences/persistent_pref_store_impl_unittest.cc

Issue 2778643002: Pref service: Filter updates from read-only pref stores. (Closed)
Patch Set: Created 3 years, 9 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_unittest.cc
diff --git a/services/preferences/persistent_pref_store_impl_unittest.cc b/services/preferences/persistent_pref_store_impl_unittest.cc
index 6537ea0c1f4743f1c4c0170aecd0045b867f58cd..f6c9fc2701dcf6cf4f85770773b40ae5915aad06 100644
--- a/services/preferences/persistent_pref_store_impl_unittest.cc
+++ b/services/preferences/persistent_pref_store_impl_unittest.cc
@@ -158,25 +158,6 @@ TEST_F(PersistentPrefStoreImplTest, InitializationFailure) {
EXPECT_TRUE(pref_store()->ReadOnly());
}
-class TestReadErrorDelegate : public PersistentPrefStore::ReadErrorDelegate {
- public:
- TestReadErrorDelegate(PersistentPrefStore::PrefReadError* storage,
- const base::Closure& quit)
- : storage_(storage), quit_(quit) {
- DCHECK(storage_);
- DCHECK(quit_);
- }
-
- void OnError(PersistentPrefStore::PrefReadError error) override {
- *storage_ = error;
- quit_.Run();
- }
-
- private:
- PersistentPrefStore::PrefReadError* const storage_;
- const base::Closure quit_;
-};
-
TEST_F(PersistentPrefStoreImplTest, InitialValue) {
auto backing_pref_store = make_scoped_refptr(new InMemoryPrefStore());
const base::Value value("value");

Powered by Google App Engine
This is Rietveld 408576698