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

Issue 6375007: [Sync] Refactored ProfileSyncService and remove its backend() function (Closed)

Created:
9 years, 11 months ago by akalin
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, Erik does not do reviews, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., Ilya Sherman, James Hawkins, tim (not reviewing), dhollowa
Visibility:
Public.

Description

[Sync] Refactored ProfileSyncService and remove its backend() function Moved bodies of test functions into .cc files. Remove sync_service() accessors from various model associators. Renamed GetUserShareHandle to GetUserShare() and removed typedefs for its return types. Added plenty of TODOs for future improvements. BUG=None TEST=unit_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72419

Patch Set 1 #

Patch Set 2 : Fix lint #

Patch Set 3 : Fix Windows compile failure #

Total comments: 17

Patch Set 4 : Address Tim's comments #

Patch Set 5 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+686 lines, -536 lines) Patch
M chrome/browser/sync/abstract_profile_sync_service_test.h View 1 2 2 chunks +23 lines, -104 lines 0 comments Download
A chrome/browser/sync/abstract_profile_sync_service_test.cc View 1 2 3 1 chunk +120 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/autofill_model_associator.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/autofill_model_associator.cc View 1 2 3 7 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/sync/glue/autofill_profile_model_associator.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/autofill_profile_model_associator.cc View 1 2 3 4 chunks +6 lines, -9 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_model_associator.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_model_associator.cc View 1 2 3 6 chunks +7 lines, -12 lines 0 comments Download
M chrome/browser/sync/glue/extension_sync.cc View 1 2 3 5 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/sync/glue/password_model_associator.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/password_model_associator.cc View 1 2 3 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/preference_model_associator.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/preference_model_associator.cc View 1 2 3 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 2 3 8 chunks +8 lines, -16 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 6 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/theme_model_associator.cc View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator.cc View 1 2 3 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 4 chunks +54 lines, -6 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 5 chunks +82 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 3 10 chunks +17 lines, -13 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_password_unittest.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_preference_unittest.cc View 1 2 3 9 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_session_unittest.cc View 1 2 3 6 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 2 3 11 chunks +81 lines, -16 lines 0 comments Download
M chrome/browser/sync/profile_sync_test_util.h View 2 chunks +1 line, -79 lines 0 comments Download
M chrome/browser/sync/sync_ui_util.cc View 1 2 2 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.h View 1 2 3 5 chunks +42 lines, -152 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 2 3 3 chunks +176 lines, -17 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
akalin
+tim for review
9 years, 11 months ago (2011-01-21 08:35:10 UTC) #1
tim (not reviewing)
I think this is a good change, but in general I cry every time we ...
9 years, 11 months ago (2011-01-21 18:16:59 UTC) #2
akalin
Addressed all comments, please take another look! http://codereview.chromium.org/6375007/diff/27002/chrome/browser/sync/glue/autofill_model_associator.cc File chrome/browser/sync/glue/autofill_model_associator.cc (right): http://codereview.chromium.org/6375007/diff/27002/chrome/browser/sync/glue/autofill_model_associator.cc#newcode154 chrome/browser/sync/glue/autofill_model_associator.cc:154: sync_api::WriteTransaction trans(sync_service_->GetUserShareHandle()); ...
9 years, 11 months ago (2011-01-21 21:21:09 UTC) #3
akalin
Ping! On 2011/01/21 21:21:09, akalin wrote: > Addressed all comments, please take another look! > ...
9 years, 11 months ago (2011-01-24 22:51:33 UTC) #4
tim (not reviewing)
9 years, 11 months ago (2011-01-24 23:00:13 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698