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

Issue 10687002: sync: fix reentrancy crash in ModelAssociationManager (Closed)

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

Description

sync: fix reentrancy crash in ModelAssociationManager Don't call OnTypesLoaded unless we're IDLE, since we could be in the middle of some other process. Add a CHECK to ensure we don't re-enter ModelAssociationManager::Initialize. BUG=134550 TEST=trigger unrecoverable error with data type while data type configuration is in progress, don't crash. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=144583

Patch Set 1 #

Patch Set 2 : test #

Patch Set 3 : rebase #

Patch Set 4 : reupload #

Total comments: 3

Patch Set 5 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -10 lines) Patch
M chrome/browser/sync/glue/fake_data_type_controller.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/model_association_manager.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/model_association_manager.cc View 1 2 6 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/sync/glue/model_association_manager_unittest.cc View 1 2 3 4 2 chunks +70 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
tim (not reviewing)
8 years, 6 months ago (2012-06-26 23:32:16 UTC) #1
Nicolas Zea
no tests? :-( LGTM otherwise
8 years, 6 months ago (2012-06-27 00:06:39 UTC) #2
tim (not reviewing)
Oh there are tests on the way! But I wanted Lingesh to take a look ...
8 years, 6 months ago (2012-06-27 00:47:35 UTC) #3
tim (not reviewing)
On 2012/06/27 00:47:35, timsteele wrote: > Oh there are tests on the way! But I ...
8 years, 5 months ago (2012-06-27 17:28:46 UTC) #4
Nicolas Zea
LGTM with nits http://codereview.chromium.org/10687002/diff/11003/chrome/browser/sync/glue/fake_data_type_controller.cc File chrome/browser/sync/glue/fake_data_type_controller.cc (right): http://codereview.chromium.org/10687002/diff/11003/chrome/browser/sync/glue/fake_data_type_controller.cc#newcode79 chrome/browser/sync/glue/fake_data_type_controller.cc:79: // error. We should probably find ...
8 years, 5 months ago (2012-06-27 17:52:09 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/10687002/9003
8 years, 5 months ago (2012-06-27 21:05:18 UTC) #6
commit-bot: I haz the power
8 years, 5 months ago (2012-06-27 22:19:30 UTC) #7
Change committed as 144583

Powered by Google App Engine
This is Rietveld 408576698