|
Fix use-after-free in HDDDTC shutdown
We were trying to unregister the HistoryDeleteDirective DTC at shutdown, but
the DTC shutdown happens as part of the ProfileSyncService shutdown, and is
destroyed after the observers_ object is destroyed. As such, there's no need
to remove the observer.
This patch also unreverts 6513171d7473b9eb60e1bf16369cf893daa33a07
Original codereview at https://codereview.chromium.org/534733002
BUG= 409965
368834
Committed: https://crrev.com/40dbafab4cfef214d7a4bae22c8d698936ed6f5f
Cr-Commit-Position: refs/heads/master@{#293824}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+435 lines, -209 lines) |
Patch |
 |
A |
chrome/browser/sync/glue/history_delete_directives_data_type_controller.h
|
View
|
1
2
3
4
5
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/sync/glue/history_delete_directives_data_type_controller.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+69 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_components_factory.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_components_factory_impl.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_components_factory_impl.cc
|
View
|
1
|
5 chunks |
+9 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_components_factory_mock.h
|
View
|
1
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service.cc
|
View
|
1
|
5 chunks |
+8 lines, -29 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_autofill_unittest.cc
|
View
|
1
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_startup_unittest.cc
|
View
|
1
|
9 chunks |
+11 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_unittest.cc
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/sync_errors_test.cc
|
View
|
1
|
2 chunks |
+27 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test_profile_sync_service.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_manager.h
|
View
|
1
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_manager_impl.h
|
View
|
1
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_manager_impl.cc
|
View
|
1
|
12 chunks |
+27 lines, -22 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_manager_impl_unittest.cc
|
View
|
1
|
44 chunks |
+206 lines, -105 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_manager_mock.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_status_table.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/sync_driver/data_type_status_table.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/fake_data_type_controller.cc
|
View
|
1
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
Total messages: 21 (7 generated)
|