|
sync: Finish non-blocking type encryption support
Undoes some previous work towards encryption support. That approach
suffered from some subtle deadlock issues that could not be easily
worked around. The new approach involves less sharing and less locks.
Gives the ModelTypeSyncWorker its own copy of the Cryptographer. By
passing around copies, it no longer needs to worry about acquiring locks
in order to access the Directory's cryptographer. This required
a rewrite of some changes to the way the ModelTypeSyncWorker detects the
current encryption state. Most notably, its Cryptographer is NULL if
encryption is not enabled for its model type.
Makes the ModelTypeSyncRegistry responsible for observing changes
emitted by the SyncEncryptionHandler and forwarding them to the
ModelTypeSyncWorkers. It should receive callbacks from the
SyncEncryptionHandler during startup, so it does not need to cache or
query any new data.
Removes the CryptographerProviders. Since the ModelTypeSyncWorker no
longer need to access the directory's cryptographer, it's no longer
necessary.
BUG= 351005
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290067
Total comments: 4
Total comments: 16
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+323 lines, -395 lines) |
Patch |
 |
M |
chrome/browser/sync/profile_sync_service.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/BUILD.gn
|
View
|
1
2
3
4
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
D |
sync/engine/cryptographer_provider.h
|
View
|
|
1 chunk |
+0 lines, -64 lines |
0 comments
|
Download
|
 |
D |
sync/engine/cryptographer_provider.cc
|
View
|
|
1 chunk |
+0 lines, -42 lines |
0 comments
|
Download
|
 |
D |
sync/engine/directory_cryptographer_provider.h
|
View
|
|
1 chunk |
+0 lines, -51 lines |
0 comments
|
Download
|
 |
D |
sync/engine/directory_cryptographer_provider.cc
|
View
|
|
1 chunk |
+0 lines, -38 lines |
0 comments
|
Download
|
 |
M |
sync/engine/model_type_entity.cc
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/engine/model_type_sync_proxy_impl.cc
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/engine/model_type_sync_worker_impl.h
|
View
|
|
6 chunks |
+12 lines, -13 lines |
0 comments
|
Download
|
 |
M |
sync/engine/model_type_sync_worker_impl.cc
|
View
|
1
2
3
|
16 chunks |
+62 lines, -61 lines |
0 comments
|
Download
|
 |
M |
sync/engine/model_type_sync_worker_impl_unittest.cc
|
View
|
1
2
3
|
10 chunks |
+71 lines, -24 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl.cc
|
View
|
1
2
3
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/protocol/proto_value_conversions.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/sessions/model_type_registry.h
|
View
|
1
2
3
|
5 chunks |
+29 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/model_type_registry.cc
|
View
|
1
2
3
|
4 chunks |
+51 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/sync.gyp
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/sync_tests.gypi
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
D |
sync/test/engine/simple_cryptographer_provider.h
|
View
|
|
1 chunk |
+0 lines, -44 lines |
0 comments
|
Download
|
 |
D |
sync/test/engine/simple_cryptographer_provider.cc
|
View
|
|
1 chunk |
+0 lines, -35 lines |
0 comments
|
Download
|
 |
M |
sync/util/cryptographer.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/util/cryptographer.cc
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/util/cryptographer_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+63 lines, -0 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|