|
|
[Sync] Move thread checking into the ModelSafeWorker interface.
Previously, several task runners (UI, DB, FILE) were piped through
several layers of sync code simply to CHECK that the correct thread was
being used. This CL adds ModelSafeWorker::IsOnModelThread() instead.
Note that HISTORY and PASSWORDS still don't have an easy way to perform
this check, but the situation is no worse than before and sets the stage
for future improvement if necessary.
BUG= 663125
Committed: https://crrev.com/509cc91f68ef68aebfc761bf6bd282c113a1632e
Cr-Commit-Position: refs/heads/master@{#430684}
Total comments: 7
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+85 lines, -124 lines) |
Patch |
 |
M |
chrome/browser/sync/profile_sync_service_factory.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_test_util.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/browser_sync/profile_sync_service.h
|
View
|
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/browser_sync/profile_sync_service.cc
|
View
|
|
3 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
components/browser_sync/profile_sync_service_unittest.cc
|
View
|
|
3 chunks |
+5 lines, -10 lines |
0 comments
|
Download
|
 |
M |
components/browser_sync/profile_sync_test_util.cc
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/history/core/browser/history_model_worker.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/history/core/browser/history_model_worker.cc
|
View
|
1
2
3
|
1 chunk |
+7 lines, -0 lines |
1 comment
|
Download
|
 |
M |
components/password_manager/sync/browser/password_model_worker.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/password_manager/sync/browser/password_model_worker.cc
|
View
|
1
2
3
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/glue/browser_thread_model_worker.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync/driver/glue/browser_thread_model_worker.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/glue/sync_backend_host.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/glue/sync_backend_host_impl.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/glue/sync_backend_host_impl.cc
|
View
|
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/glue/sync_backend_host_impl_unittest.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/glue/sync_backend_host_mock.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/glue/sync_backend_host_mock.cc
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/glue/sync_backend_registrar.h
|
View
|
|
5 chunks |
+5 lines, -16 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/glue/sync_backend_registrar.cc
|
View
|
|
7 chunks |
+16 lines, -46 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/glue/sync_backend_registrar_unittest.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/glue/ui_model_worker.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync/driver/glue/ui_model_worker.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync/engine/model_safe_worker.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync/engine/passive_model_worker.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/sync/engine/passive_model_worker.cc
|
View
|
1
2
3
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync/test/engine/fake_model_worker.h
|
View
|
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/sync/test/engine/fake_model_worker.cc
|
View
|
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
Total messages: 25 (15 generated)
|