|
Pref service: Add a ScopedDictionaryPrefUpdate to track value changes.
Currently, if a pref is changed and the pref service is enabled, the
entire value is sent to the pref service and other clients. For large
prefs used by extensions or content settings this can result
milliseconds of busy time on the UI thread.
ScopedDictionaryPrefUpdate tracks which components of a pref are changed
so only the changes need to be sent to the pref service and other pref
clients.
BUG= 654988
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1637 lines, -48 lines) |
Patch |
|
M |
components/prefs/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
components/prefs/pref_service.h
|
View
|
|
3 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/prefs/pref_service.cc
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/prefs/writeable_pref_store.h
|
View
|
|
2 chunks |
+19 lines, -5 lines |
0 comments
|
Download
|
|
A |
components/prefs/writeable_pref_store.cc
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/common/values_struct_traits.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/common/values_struct_traits.cc
|
View
|
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
services/preferences/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
services/preferences/persistent_pref_store_impl.cc
|
View
|
|
3 chunks |
+34 lines, -6 lines |
0 comments
|
Download
|
|
M |
services/preferences/pref_service_factory_unittest.cc
|
View
|
|
5 chunks |
+210 lines, -0 lines |
0 comments
|
Download
|
|
M |
services/preferences/public/cpp/BUILD.gn
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
A |
services/preferences/public/cpp/lib/BUILD.gn
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
services/preferences/public/cpp/lib/util.h
|
View
|
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
|
A |
services/preferences/public/cpp/lib/util.cc
|
View
|
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
|
M |
services/preferences/public/cpp/persistent_pref_store_client.h
|
View
|
|
4 chunks |
+13 lines, -2 lines |
0 comments
|
Download
|
|
M |
services/preferences/public/cpp/persistent_pref_store_client.cc
|
View
|
|
4 chunks |
+98 lines, -15 lines |
0 comments
|
Download
|
|
M |
services/preferences/public/cpp/pref_store_client_mixin.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
services/preferences/public/cpp/pref_store_client_mixin.cc
|
View
|
|
2 chunks |
+29 lines, -10 lines |
0 comments
|
Download
|
|
M |
services/preferences/public/cpp/pref_store_impl.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
services/preferences/public/cpp/pref_store_impl.cc
|
View
|
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
A |
services/preferences/public/cpp/scoped_pref_update.h
|
View
|
|
1 chunk |
+197 lines, -0 lines |
0 comments
|
Download
|
|
A |
services/preferences/public/cpp/scoped_pref_update.cc
|
View
|
|
1 chunk |
+385 lines, -0 lines |
0 comments
|
Download
|
|
M |
services/preferences/public/cpp/tests/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
services/preferences/public/cpp/tests/persistent_pref_store_client_unittest.cc
|
View
|
|
1 chunk |
+500 lines, -0 lines |
0 comments
|
Download
|
|
M |
services/preferences/public/cpp/tests/pref_store_client_unittest.cc
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
services/preferences/public/interfaces/preferences.mojom
|
View
|
|
1 chunk |
+17 lines, -3 lines |
0 comments
|
Download
|
Total messages: 25 (23 generated)
|