Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Issue 10979067: sync: Remove ChangeProcessor::Stop() (Closed)

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

Description

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

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase on top of new themes code #

Patch Set 3 : Remove unnecessary NULLing #

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

Messages

Total messages: 5 (0 generated)
rlarocque
I'm mostly convinced this is correct, though I'm not sure I fully understand the context ...
8 years, 2 months ago (2012-09-28 17:45:40 UTC) #1
Nicolas Zea
LGTM. Note that themes is now using the syncable service api, so you'll likely get ...
8 years, 2 months ago (2012-10-01 16:22:13 UTC) #2
rlarocque
Updated. I'll be hitting the commit button soon. http://codereview.chromium.org/10979067/diff/1/chrome/browser/sync/glue/bookmark_change_processor.cc File chrome/browser/sync/glue/bookmark_change_processor.cc (right): http://codereview.chromium.org/10979067/diff/1/chrome/browser/sync/glue/bookmark_change_processor.cc#newcode51 chrome/browser/sync/glue/bookmark_change_processor.cc:51: bookmark_model_ ...
8 years, 2 months ago (2012-10-01 20:00:46 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10979067/13001
8 years, 2 months ago (2012-10-01 20:02:15 UTC) #4
commit-bot: I haz the power
8 years, 2 months ago (2012-10-02 00:22:54 UTC) #5
Change committed as 159600

Powered by Google App Engine
This is Rietveld 408576698