New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 706000 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Task


Show other hotlists

Hotlists containing this issue:
Hotlist-1


Sign in to add a comment

Move KeyedServiceFactory access from XxSyncClient to PSSF

Project Member Reported by s...@chromium.org, Mar 28 2017

Issue description

See sdefresne@'s comments on https://codereview.chromium.org/2768923005/

The basic idea is that we are declaring DependOns in [IOSChrome]ProfileSyncServiceFactory but for the most part not actually using the corresponding KeyedServiceFactories there. Instead we use them in the [IOS]ChromeSyncClient. This is okayish, in that we're successfully protecting ourselves from having our dependencies yanked out from underneath us. But it makes the code confusing to read and obfuscates why/where we actually use our depdenecies.

A better approach would to have the [IOSChrome]ProfileSyncServiceFactory retrieve services and pass then into the PSS's constructor somehow. This would allow overriding them in tests, and make the code easier to follow.
 

Comment 1 by s...@chromium.org, Mar 28 2017

Cc: sdefresne@chromium.org

Comment 2 by s...@chromium.org, Jan 17 2018

Status: WontFix (was: Assigned)
This would be nice to have done, but isn't critical, and not currently planned on being done. Closing as WontFix, can always re-open if someone finds the time to do it.

Comment 3 by s...@chromium.org, Jan 17 2018

Status: Archived (was: WontFix)

Sign in to add a comment