|
sync: Remove ChangeProcessor::Stop()
Stopping the ChangeProcessor from the UI is racy, especially for data
types with controllers that directly extend
NonFrontendDataTypeController. This can lead to crashes or DCHECK
failures.
It turns out that the easiest way to fix this is to not Stop() the
ChangeProcessors from the UI thread. There are no data types that
require this functionality. It is at best unnecessary and at worst
harmful.
Without Stop(), there is no longer any need to check if a
ChangeProcessor is running. Therefore, running_ and its associated
methods, DCHECKs, etc. have been removed, too.
BUG= 151606
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159600
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+18 lines, -118 lines) |
Patch |
 |
M |
chrome/browser/sync/glue/bookmark_change_processor.h
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/bookmark_change_processor.cc
|
View
|
1
2
|
7 chunks |
+6 lines, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/change_processor.h
|
View
|
|
2 chunks |
+8 lines, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/change_processor.cc
|
View
|
|
2 chunks |
+1 line, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/change_processor_mock.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/generic_change_processor.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/generic_change_processor.cc
|
View
|
|
3 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/password_change_processor.h
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/password_change_processor.cc
|
View
|
|
6 chunks |
+1 line, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/session_change_processor.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/session_change_processor.cc
|
View
|
1
2
|
3 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_registrar.cc
|
View
|
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_registrar_unittest.cc
|
View
|
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/typed_url_change_processor.h
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/typed_url_change_processor.cc
|
View
|
|
6 chunks |
+1 line, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_bookmark_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|