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

Issue 8305006: Fix an incorrect DCHECK caused by incorrect stop behavior. (Closed)

Created:
9 years, 2 months ago by lipalani1
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), tim (not reviewing), idana
Visibility:
Public.

Description

When StartFailed for a datatype the fix is to call StopAssociation which would call DisassociateModel and clear off the change processor and model associator. When stop is called later on the same datatype we dont call StopAssociationAsync any more (which would be implemented in the datatypes' sub class) if the datatype never started succesfully. (The assertion was in this code because we were calling StopAssociationAsync on a datatype that failed to start). BUG=100057 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105668 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105676

Patch Set 1 #

Total comments: 2

Patch Set 2 : For review. #

Total comments: 1

Patch Set 3 : Upload before commit. #

Total comments: 3

Patch Set 4 : Upload before commit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -25 lines) Patch
M chrome/browser/sync/glue/non_frontend_data_type_controller.cc View 1 2 3 2 chunks +31 lines, -24 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
lipalani1
Whoever is free please review.
9 years, 2 months ago (2011-10-14 21:08:36 UTC) #1
Nicolas Zea
http://codereview.chromium.org/8305006/diff/1/chrome/browser/sync/glue/non_frontend_data_type_controller.cc File chrome/browser/sync/glue/non_frontend_data_type_controller.cc (right): http://codereview.chromium.org/8305006/diff/1/chrome/browser/sync/glue/non_frontend_data_type_controller.cc#newcode186 chrome/browser/sync/glue/non_frontend_data_type_controller.cc:186: if (state_ == ASSOCIATING) { I think it would ...
9 years, 2 months ago (2011-10-14 21:13:50 UTC) #2
lipalani1
PTAL. http://codereview.chromium.org/8305006/diff/1/chrome/browser/sync/glue/non_frontend_data_type_controller.cc File chrome/browser/sync/glue/non_frontend_data_type_controller.cc (right): http://codereview.chromium.org/8305006/diff/1/chrome/browser/sync/glue/non_frontend_data_type_controller.cc#newcode186 chrome/browser/sync/glue/non_frontend_data_type_controller.cc:186: if (state_ == ASSOCIATING) { Since it was ...
9 years, 2 months ago (2011-10-14 22:02:49 UTC) #3
Nicolas Zea
LGTM with one change. http://codereview.chromium.org/8305006/diff/4002/chrome/browser/sync/glue/non_frontend_data_type_controller.cc File chrome/browser/sync/glue/non_frontend_data_type_controller.cc (right): http://codereview.chromium.org/8305006/diff/4002/chrome/browser/sync/glue/non_frontend_data_type_controller.cc#newcode207 chrome/browser/sync/glue/non_frontend_data_type_controller.cc:207: state_ = STOPPING; I think ...
9 years, 2 months ago (2011-10-14 22:15:12 UTC) #4
Nicolas Zea
LGTM with nits http://codereview.chromium.org/8305006/diff/4003/chrome/browser/sync/glue/non_frontend_data_type_controller.cc File chrome/browser/sync/glue/non_frontend_data_type_controller.cc (right): http://codereview.chromium.org/8305006/diff/4003/chrome/browser/sync/glue/non_frontend_data_type_controller.cc#newcode207 chrome/browser/sync/glue/non_frontend_data_type_controller.cc:207: state_ = NOT_RUNNING; Add comment that ...
9 years, 2 months ago (2011-10-15 00:13:37 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lipalani@chromium.org/8305006/6002
9 years, 2 months ago (2011-10-15 03:33:51 UTC) #6
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
9 years, 2 months ago (2011-10-15 08:06:01 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lipalani@chromium.org/8305006/6002
9 years, 2 months ago (2011-10-15 08:29:22 UTC) #8
commit-bot: I haz the power
9 years, 2 months ago (2011-10-15 11:51:21 UTC) #9
The commit queue went berserk retrying too often for a
seemingly flaky test. Builder is mac_rel, revision is 105656, job name
was 8305006-6002 (retry) (retry) (retry) (retry).

Powered by Google App Engine
This is Rietveld 408576698