Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1397)

Issue 9307079: [Sync] Fix thread-ordering-dependent NULL dereference in NewNonFrontendDTC (Closed)

Created:
8 years, 10 months ago by akalin
Modified:
8 years, 10 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing)
Visibility:
Public.

Description

[Sync] Fix thread-ordering-dependent NULL dereference in NewNonFrontendDTC Re-enable migration tests that were affected. Rewrite autofill DTC tests. Add basic unit test for SharedChangeProcessor. Fix bug in SharedChangeProcessor where its GenericChangeProcessor could be deleted on the wrong thread. Renamed some tests to have 'Sync' in their names. BUG=107743, 111552 TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120698 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120942

Patch Set 1 #

Patch Set 2 : Fix comments #

Patch Set 3 : Fix more comments #

Patch Set 4 : Add return value to SetSharedChangeProcessor #

Patch Set 5 : Add test comment #

Patch Set 6 : Clarified comment #

Total comments: 7

Patch Set 7 : Addressed comments #

Total comments: 4

Patch Set 8 : Fix autofill DTC tests #

Patch Set 9 : Fix SyncableService bug #

Patch Set 10 : Fix another unittest #

Patch Set 11 : fix copyright #

Patch Set 12 : sync to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+480 lines, -259 lines) Patch
M chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +106 lines, -122 lines 0 comments Download
M chrome/browser/sync/glue/new_non_frontend_data_type_controller.h View 1 2 3 4 5 6 2 chunks +27 lines, -15 lines 0 comments Download
M chrome/browser/sync/glue/new_non_frontend_data_type_controller.cc View 1 2 3 4 5 6 7 11 chunks +59 lines, -37 lines 0 comments Download
M chrome/browser/sync/glue/new_non_frontend_data_type_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 17 chunks +92 lines, -25 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller.h View 1 2 3 4 5 6 7 5 chunks +21 lines, -16 lines 0 comments Download
M chrome/browser/sync/glue/shared_change_processor.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/shared_change_processor.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +32 lines, -16 lines 0 comments Download
M chrome/browser/sync/glue/shared_change_processor_mock.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -12 lines 0 comments Download
A chrome/browser/sync/glue/shared_change_processor_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +115 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/migration_errors_test.cc View 1 2 3 4 5 6 3 chunks +3 lines, -10 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
akalin
+zea for review You'll love this solution!
8 years, 10 months ago (2012-02-03 00:57:37 UTC) #1
Nicolas Zea
Some comments. https://chromiumcodereview.appspot.com/9307079/diff/1013/chrome/browser/sync/glue/new_non_frontend_data_type_controller.cc File chrome/browser/sync/glue/new_non_frontend_data_type_controller.cc (right): https://chromiumcodereview.appspot.com/9307079/diff/1013/chrome/browser/sync/glue/new_non_frontend_data_type_controller.cc#newcode76 chrome/browser/sync/glue/new_non_frontend_data_type_controller.cc:76: // by |shared_change_processor_|, which is guaranteed to ...
8 years, 10 months ago (2012-02-03 18:54:43 UTC) #2
akalin
Addressed your main comment, and all other comments were rendered moot, I think. Please take ...
8 years, 10 months ago (2012-02-03 23:09:03 UTC) #3
Nicolas Zea
LGTM once trybots like it (note that AutofillDataTypeControllerUnitTests mocks the old StartAssociation() method) http://codereview.chromium.org/9307079/diff/8/chrome/browser/sync/glue/new_non_frontend_data_type_controller.cc File ...
8 years, 10 months ago (2012-02-03 23:52:09 UTC) #4
akalin
Also, I basically rewrote the autofill tests (to use a fake instead of a mock). ...
8 years, 10 months ago (2012-02-06 19:31:35 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/9307079/8001
8 years, 10 months ago (2012-02-06 21:29:20 UTC) #6
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 10 months ago (2012-02-07 01:59:44 UTC) #7
akalin
Fixed bug in SyncableService and added test. recommitting soon.
8 years, 10 months ago (2012-02-07 06:16:45 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/9307079/18001
8 years, 10 months ago (2012-02-07 06:17:04 UTC) #9
commit-bot: I haz the power
Try job failure for 9307079-18001 (retry) on linux_rel for step "unit_tests". It's a second try, ...
8 years, 10 months ago (2012-02-07 07:21:42 UTC) #10
commit-bot: I haz the power
8 years, 10 months ago (2012-02-08 00:23:29 UTC) #11

Powered by Google App Engine
This is Rietveld 408576698