|
Clean up pref change notification handling.
This is a complete overhaul of PrefValueStore, PrefStore, PrefNotifier, and PrefService. Specifically:
- Add an observer interface to PrefStore that can be used to notify the upper layers of the pref system about value changes. Currently, it's unused mostly, but that'll change when we refactor ExtensionPrefStore and ConfigurationPolicyPrefStore.
- Make PrefNotifier be a dependency of PrefValueStore. That helps in keeping the pref change detection handling local to PrefValueStore.
- Clean up related unit tests, removing redundant mocks and gmockify others.
BUG= 64893
TEST=Compiles and passes tests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68574
Total comments: 60
Total comments: 24
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1576 lines, -1472 lines) |
Patch |
 |
M |
chrome/browser/extensions/extension_management_browsertest.cc
|
View
|
1
2
3
4
|
3 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_prefs.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extensions_service_unittest.cc
|
View
|
1
2
3
4
|
3 chunks |
+14 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/managed_prefs_banner_base_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
D |
chrome/browser/prefs/dummy_pref_store.h
|
View
|
1
|
1 chunk |
+0 lines, -49 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/prefs/dummy_pref_store.cc
|
View
|
1
|
1 chunk |
+0 lines, -22 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_change_registrar_unittest.cc
|
View
|
|
3 chunks |
+3 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_member_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_notifier.h
|
View
|
1
2
3
|
1 chunk |
+11 lines, -102 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/prefs/pref_notifier.cc
|
View
|
1
|
1 chunk |
+0 lines, -137 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/prefs/pref_notifier_impl.h
|
View
|
1
2
3
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/prefs/pref_notifier_impl.cc
|
View
|
1
2
3
|
1 chunk |
+105 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/prefs/pref_notifier_impl_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+199 lines, -0 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/prefs/pref_notifier_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -294 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/prefs/pref_observer_mock.h
|
View
|
1
|
1 chunk |
+60 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_service.h
|
View
|
1
2
3
4
|
5 chunks |
+33 lines, -15 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_service.cc
|
View
|
1
2
3
4
5
6
|
11 chunks |
+71 lines, -32 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_service_unittest.cc
|
View
|
1
2
3
4
|
9 chunks |
+53 lines, -122 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_value_store.h
|
View
|
1
2
3
4
|
9 chunks |
+203 lines, -120 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_value_store.cc
|
View
|
1
2
3
4
|
8 chunks |
+260 lines, -238 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_value_store_unittest.cc
|
View
|
1
|
11 chunks |
+216 lines, -208 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/scoped_pref_update.cc
|
View
|
1
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
A |
chrome/browser/prefs/testing_pref_store.h
|
View
|
1
2
3
|
1 chunk |
+63 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/prefs/testing_pref_store.cc
|
View
|
1
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc
|
View
|
|
2 chunks |
+22 lines, -30 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/chrome_common.gypi
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
4
|
4 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/common/json_pref_store.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/notification_type.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/pref_store.h
|
View
|
1
|
3 chunks |
+33 lines, -5 lines |
0 comments
|
Download
|
 |
A |
chrome/common/pref_store_base.h
|
View
|
1
2
3
4
5
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/common/pref_store_base.cc
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/common/pref_store_observer_mock.h
|
View
|
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/testing_pref_service.h
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/test/testing_pref_service.cc
|
View
|
1
2
3
4
|
2 chunks |
+17 lines, -17 lines |
0 comments
|
Download
|
 |
D |
chrome/test/testing_pref_value_store.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -26 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|