OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef COMPONENTS_PERF_REGISTRY_TESTING_PREF_SERVICE_SYNCABLE_H_ | 5 #ifndef COMPONENTS_PERF_REGISTRY_TESTING_PREF_SERVICE_SYNCABLE_H_ |
Bernhard Bauer
2016/12/07 15:36:40
Also: lol, perf registry :)
| |
6 #define COMPONENTS_PERF_REGISTRY_TESTING_PREF_SERVICE_SYNCABLE_H_ | 6 #define COMPONENTS_PERF_REGISTRY_TESTING_PREF_SERVICE_SYNCABLE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/prefs/testing_pref_service.h" | 9 #include "components/prefs/testing_pref_service.h" |
10 | 10 |
11 namespace user_prefs { | 11 namespace user_prefs { |
12 | 12 |
13 class PrefRegistrySyncable; | 13 class PrefRegistrySyncable; |
14 | 14 |
15 // Test version of PrefServiceSyncable. | 15 // Test version of PrefServiceSyncable. |
16 class TestingPrefServiceSyncable | 16 class TestingPrefServiceSyncable |
17 : public TestingPrefServiceBase<PrefService, PrefRegistrySyncable> { | 17 : public TestingPrefServiceBase<PrefService, PrefRegistrySyncable> { |
18 public: | 18 public: |
19 TestingPrefServiceSyncable(); | 19 TestingPrefServiceSyncable(); |
20 TestingPrefServiceSyncable(TestingPrefStore* managed_prefs, | 20 TestingPrefServiceSyncable(TestingPrefStore* managed_prefs, |
vasilii
2016/12/06 19:16:42
How is this class different from components/sync_p
gab
2016/12/06 19:35:04
I'm also confused, maybe it wasn't properly remove
Bernhard Bauer
2016/12/07 15:36:40
No idea. It actually looks like it was added as a
hashimoto
2016/12/08 07:45:28
I added user_prefs::TestingPrefServiceSyncable (=
Alexander Yashkin
2016/12/09 08:19:52
I think this should be fixed, but not in the scope
sdefresne
2016/12/21 12:52:56
I don't know why they were not merged. We probably
| |
21 TestingPrefStore* extension_prefs, | |
21 TestingPrefStore* user_prefs, | 22 TestingPrefStore* user_prefs, |
22 TestingPrefStore* recommended_prefs, | 23 TestingPrefStore* recommended_prefs, |
23 PrefRegistrySyncable* pref_registry, | 24 PrefRegistrySyncable* pref_registry, |
24 PrefNotifierImpl* pref_notifier); | 25 PrefNotifierImpl* pref_notifier); |
25 ~TestingPrefServiceSyncable() override; | 26 ~TestingPrefServiceSyncable() override; |
26 | 27 |
27 // This is provided as a convenience; on a production PrefService | 28 // This is provided as a convenience; on a production PrefService |
28 // you would do all registrations before constructing it, passing it | 29 // you would do all registrations before constructing it, passing it |
29 // a PrefRegistry via its constructor (or via e.g. PrefServiceFactory). | 30 // a PrefRegistry via its constructor (or via e.g. PrefServiceFactory). |
30 PrefRegistrySyncable* registry(); | 31 PrefRegistrySyncable* registry(); |
31 | 32 |
32 private: | 33 private: |
33 DISALLOW_COPY_AND_ASSIGN(TestingPrefServiceSyncable); | 34 DISALLOW_COPY_AND_ASSIGN(TestingPrefServiceSyncable); |
34 }; | 35 }; |
35 | 36 |
36 } // namespace user_prefs | 37 } // namespace user_prefs |
37 | 38 |
38 #endif // COMPONENTS_PERF_REGISTRY_TESTING_PREF_SERVICE_SYNCABLE_H_ | 39 #endif // COMPONENTS_PERF_REGISTRY_TESTING_PREF_SERVICE_SYNCABLE_H_ |
OLD | NEW |