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

Issue 9264062: [Sync] Consolidate DataTypeController methods that post on the backend thread (Closed)

Created:
8 years, 10 months ago by akalin
Modified:
8 years, 10 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, GeorgeY, ncarter (slow), akalin, Raghu Simha, mihaip+watch_chromium.org, Aaron Boodman, dyu1, dhollowa+watch_chromium.org, Ilya Sherman, tim (not reviewing)
Visibility:
Public.

Description

[Sync] Consolidate DataTypeController methods that post on the backend thread Make NonFrontendDataTypeController:{Start,Stop}AssociationAsync() and NewNonFrontendDataTypeController::StopLocalService{,Async}() private non-virtual methods and make them use the new method NonFrontendDataTypeController::PostTaskOnBackendThread(from_here, task). This is a prerequisite for fixing the intermittent crash in NewNonFrontendDataTypeController::StartAssociation() on the migration integration tests. Fix a leak introduced by 111794 (see bug 105667). BUG=107743, 105667 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120167

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address comments #

Patch Set 3 : Add suppressions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -265 lines) Patch
M chrome/browser/sync/glue/autofill_data_type_controller.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller.cc View 1 3 chunks +7 lines, -13 lines 0 comments Download
M chrome/browser/sync/glue/autofill_profile_data_type_controller.h View 1 1 chunk +18 lines, -17 lines 0 comments Download
M chrome/browser/sync/glue/autofill_profile_data_type_controller.cc View 3 chunks +7 lines, -13 lines 0 comments Download
M chrome/browser/sync/glue/extension_setting_data_type_controller.h View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/extension_setting_data_type_controller.cc View 4 chunks +20 lines, -33 lines 0 comments Download
M chrome/browser/sync/glue/new_non_frontend_data_type_controller.h View 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/sync/glue/new_non_frontend_data_type_controller.cc View 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/new_non_frontend_data_type_controller_mock.h View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/new_non_frontend_data_type_controller_unittest.cc View 1 9 chunks +5 lines, -19 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller.h View 1 5 chunks +18 lines, -11 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller_mock.h View 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller_unittest.cc View 1 10 chunks +9 lines, -20 lines 0 comments Download
M chrome/browser/sync/glue/password_data_type_controller.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/password_data_type_controller.cc View 3 chunks +9 lines, -18 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_data_type_controller.h View 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_data_type_controller.cc View 1 5 chunks +31 lines, -39 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M tools/heapcheck/suppressions.txt View 1 2 1 chunk +0 lines, -18 lines 0 comments Download
M tools/valgrind/memcheck/suppressions.txt View 1 2 1 chunk +0 lines, -26 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
akalin
+zea for review
8 years, 10 months ago (2012-01-31 04:14:59 UTC) #1
Nicolas Zea
http://codereview.chromium.org/9264062/diff/1/chrome/browser/sync/glue/autofill_data_type_controller.cc File chrome/browser/sync/glue/autofill_data_type_controller.cc (right): http://codereview.chromium.org/9264062/diff/1/chrome/browser/sync/glue/autofill_data_type_controller.cc#newcode37 chrome/browser/sync/glue/autofill_data_type_controller.cc:37: return BrowserThread::PostTask(BrowserThread::DB, FROM_HERE, task); FROM_HERE vs from_here. Although using ...
8 years, 10 months ago (2012-01-31 23:21:01 UTC) #2
akalin
PTAL http://codereview.chromium.org/9264062/diff/1/chrome/browser/sync/glue/autofill_data_type_controller.cc File chrome/browser/sync/glue/autofill_data_type_controller.cc (right): http://codereview.chromium.org/9264062/diff/1/chrome/browser/sync/glue/autofill_data_type_controller.cc#newcode37 chrome/browser/sync/glue/autofill_data_type_controller.cc:37: return BrowserThread::PostTask(BrowserThread::DB, FROM_HERE, task); On 2012/01/31 23:21:01, nzea ...
8 years, 10 months ago (2012-02-01 02:50:06 UTC) #3
Nicolas Zea
lgtm
8 years, 10 months ago (2012-02-01 18:08:36 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/9264062/10027
8 years, 10 months ago (2012-02-02 04:46:53 UTC) #5
commit-bot: I haz the power
8 years, 10 months ago (2012-02-02 06:11:16 UTC) #6
Change committed as 120167

Powered by Google App Engine
This is Rietveld 408576698