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

Unified Diff: chrome/test/base/testing_pref_service.h

Issue 12079097: Introduce PrefRegistrySyncable, simplifying PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 11 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/test/base/testing_pref_service.h
diff --git a/chrome/test/base/testing_pref_service.h b/chrome/test/base/testing_pref_service.h
index 9330cfb7bce6d347b1b859a78eb8cab8ff8e24ca..f5d9407259af5c6974795e571688bb9f5aab3c7a 100644
--- a/chrome/test/base/testing_pref_service.h
+++ b/chrome/test/base/testing_pref_service.h
@@ -14,6 +14,7 @@
class PrefModelAssociator;
class PrefNotifierImpl;
class PrefRegistrySimple;
+class PrefRegistrySyncable;
class TestingBrowserProcess;
class TestingPrefStore;
@@ -101,6 +102,12 @@ class TestingPrefServiceSyncable
TestingPrefServiceSyncable();
virtual ~TestingPrefServiceSyncable();
+ // This is provided as a convenience; on a production PrefService
+ // you would do all registrations before constructing it, passing it
+ // a PrefRegistry via its constructor (or via
+ // e.g. PrefServiceBuilder).
+ PrefRegistrySyncable* registry();
+
private:
DISALLOW_COPY_AND_ASSIGN(TestingPrefServiceSyncable);
};

Powered by Google App Engine
This is Rietveld 408576698