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

Issue 685362 link

Starred by 0 users

Issue metadata

Status: WontFix
Owner:
Last visit 22 days ago
Closed: Aug 17
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Create OfflinePageService and make it own/vend the other sunservices of Offline Pages Backend

Project Member Reported by chili@chromium.org, Jan 25 2017

Issue description

We create the same policy for everything.  They should ideally be the same instance. Perhaps this should be a keyed service or some other static item
 
Cc: fgor...@chromium.org
Owner: chili@chromium.org
Status: Assigned (was: Available)

Comment 2 by dim...@chromium.org, Feb 27 2017

Alternatively, this can be a common OfflinePageService which would vend the instances of other sub-services (model, RC, PolicyController etc). It should be cheap to create the objects themselves but avid heavy operations like database loading until it is needed. 
We already moved the Model API to be async so it should be relatively easy change.

Comment 3 by dim...@chromium.org, Feb 27 2017

Summary: Create OfflinePageService and make it own/vend the other sunservices of Offline Pages Backend (was: Create static global shared instance of PolicyController)
Changing the title and more detail:
The OfflilnePageService also should take ownership and provide the objects that are currently 'attached' to Model or RequestCoordinator by means of SetUserData.
See DownloadUIAdapter::FromOfflinePageModel for example.

Comment 4 by chili@chromium.org, Feb 28 2017

Blocker: 1-pager
Need signoffs from: rest of team
Estimated blocker resolution: 2-3 days
Status: WontFix (was: Assigned)
There seems to be too many things in flux for this to be a good idea right now. Since it hasn't been needed for so long, it makes sense to wait until it's necessary (i.e. when we combine databases)

Sign in to add a comment