|
|
Create a DefaultPrefStore to hold registered application-default preference values.
Also rework preference notifications so they're not sent when a pref store rewrites the same value it already had,
to avoid infinite recursion in places that set a pref in response to a notification that that pref has changed.
This allows notifications to be sent properly when another PrefStore takes control from a default value.
BUG= 52719, 54950
TEST=covered by unit tests (PrefValueStoreTest.*, PrefNotifierTest.*, and ExtensionPrefStoreTest.*)
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=59345
Total comments: 15
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+493 lines, -451 lines) |
Patch |
 |
M |
chrome/browser/cocoa/preferences_window_controller_unittest.mm
|
View
|
1
2
3
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_pref_store.cc
|
View
|
1
2
3
|
2 chunks |
+22 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_pref_store_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/net/chrome_url_request_context_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
A |
chrome/browser/prefs/default_pref_store.h
|
View
|
1
2
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/prefs/default_pref_store.cc
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_notifier.h
|
View
|
1
2
3
|
3 chunks |
+10 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_notifier.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_notifier_unittest.cc
|
View
|
1
2
3
|
9 chunks |
+20 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_service.h
|
View
|
1
2
3
|
8 chunks |
+27 lines, -19 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_service.cc
|
View
|
1
2
3
|
10 chunks |
+122 lines, -223 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_service_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_value_store.h
|
View
|
1
2
3
|
7 chunks |
+43 lines, -41 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_value_store.cc
|
View
|
1
2
3
|
7 chunks |
+63 lines, -60 lines |
1 comment
|
Download
|
 |
M |
chrome/browser/prefs/pref_value_store_unittest.cc
|
View
|
1
2
3
|
14 chunks |
+103 lines, -59 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/testing_pref_service.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/testing_pref_service.cc
|
View
|
1
2
3
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|