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

Issue 9232011: sync: Make ProfileSyncService a ProfileKeyedService. (Closed)

Created:
8 years, 11 months ago by tim (not reviewing)
Modified:
8 years, 11 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin
Visibility:
Public.

Description

sync: Make ProfileSyncService a ProfileKeyedService. Create ProfileSyncService using a factory, and transfer ownership of the components factory to ProfileSyncService. I deliberately left GetProfileSyncService to keep this patch focused on the actual change and more manageable in size. It now just wraps calls to the factory, and I'll change the rest of the callers in a follow up (there are a lot). BUG=93922 TEST=Sync still works / can be set up / starts properly after browser restart / shuts down. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=118474

Patch Set 1 : init #

Total comments: 8

Patch Set 2 : review + mac compile #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -191 lines) Patch
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 5 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 5 chunks +4 lines, -26 lines 0 comments Download
M chrome/browser/sync/abstract_profile_sync_service_test.h View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory.h View 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.h View 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 3 chunks +1 line, -24 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc View 4 chunks +15 lines, -9 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_mock.h View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 7 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 8 chunks +14 lines, -12 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
A chrome/browser/sync/profile_sync_service_factory.h View 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/sync/profile_sync_service_factory.cc View 1 2 1 chunk +99 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_password_unittest.cc View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_preference_unittest.cc View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_session_unittest.cc View 1 2 3 4 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 1 2 3 5 chunks +22 lines, -17 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 3 4 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 2 3 7 chunks +50 lines, -38 lines 0 comments Download
M chrome/browser/sync/sync_setup_wizard_unittest.cc View 1 2 3 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
tim (not reviewing)
Please review. As I mentioned in the description I'm planning to kill GetProfileSyncService + HasProfileSyncService ...
8 years, 11 months ago (2012-01-16 21:04:56 UTC) #1
Andrew T Wilson (Slow)
Mostly looks good - just concerned about code not in BuildServiceInstanceFor(). http://codereview.chromium.org/9232011/diff/2001/chrome/browser/profiles/profile.h File chrome/browser/profiles/profile.h (right): ...
8 years, 11 months ago (2012-01-17 20:25:40 UTC) #2
Elliot Glaysher
mostly lg, I basically am with Andrew and don't understand what you're doing in the ...
8 years, 11 months ago (2012-01-17 20:56:07 UTC) #3
tim (not reviewing)
http://codereview.chromium.org/9232011/diff/2001/chrome/browser/sync/profile_sync_service_factory.cc File chrome/browser/sync/profile_sync_service_factory.cc (right): http://codereview.chromium.org/9232011/diff/2001/chrome/browser/sync/profile_sync_service_factory.cc#newcode48 chrome/browser/sync/profile_sync_service_factory.cc:48: service->factory()->RegisterDataTypes(service); On 2012/01/17 20:25:41, Andrew T Wilson wrote: > ...
8 years, 11 months ago (2012-01-17 21:17:26 UTC) #4
tim (not reviewing)
On 2012/01/17 21:17:26, timsteele wrote: > http://codereview.chromium.org/9232011/diff/2001/chrome/browser/sync/profile_sync_service_factory.cc > File chrome/browser/sync/profile_sync_service_factory.cc (right): > > http://codereview.chromium.org/9232011/diff/2001/chrome/browser/sync/profile_sync_service_factory.cc#newcode48 > ...
8 years, 11 months ago (2012-01-17 21:26:15 UTC) #5
Andrew T Wilson (Slow)
On 2012/01/17 21:17:26, timsteele wrote: > I tried to explain this in the TODO, but ...
8 years, 11 months ago (2012-01-17 23:33:02 UTC) #6
Elliot Glaysher
person who actually knows what he's talking about gives the lgtm? I'll lgtm too!
8 years, 11 months ago (2012-01-17 23:36:55 UTC) #7
tim (not reviewing)
On 2012/01/17 23:33:02, Andrew T Wilson wrote: > On 2012/01/17 21:17:26, timsteele wrote: > > ...
8 years, 11 months ago (2012-01-17 23:37:28 UTC) #8
tim (not reviewing)
Responses to other comments + fix for mac compile uploaded. http://codereview.chromium.org/9232011/diff/2001/chrome/browser/profiles/profile.h File chrome/browser/profiles/profile.h (right): http://codereview.chromium.org/9232011/diff/2001/chrome/browser/profiles/profile.h#newcode384 ...
8 years, 11 months ago (2012-01-17 23:44:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/9232011/17001
8 years, 11 months ago (2012-01-20 03:37:38 UTC) #10
commit-bot: I haz the power
Try job failure for 9232011-17001 (retry) (retry) on mac_rel for step "browser_tests". It's a second ...
8 years, 11 months ago (2012-01-20 06:03:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/9232011/17001
8 years, 11 months ago (2012-01-20 07:07:41 UTC) #12
commit-bot: I haz the power
Try job failure for 9232011-17001 (retry) (retry) on mac_rel for step "browser_tests". It's a second ...
8 years, 11 months ago (2012-01-20 09:34:21 UTC) #13
tim (not reviewing)
8 years, 11 months ago (2012-01-20 20:14:48 UTC) #14
On 2012/01/20 09:34:21, I haz the power (commit-bot) wrote:
> Try job failure for 9232011-17001 (retry) (retry) on mac_rel for step
> "browser_tests".
> It's a second try, previously, step "browser_tests" failed.
>
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&nu...

Try run looks good on patch set 3, committing (mac_rel is failing for everyone).

Powered by Google App Engine
This is Rietveld 408576698