Closed Bug 572436 Opened 15 years ago Closed 15 years ago

Get rid of app-specific hacks (switch (Svc.AppInfo.ID)) in sync library

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: philikon, Assigned: philikon)

References

Details

Attachments

(1 file, 1 obsolete file)

There are a few cases where we have app-specific code in the sync library. Ideally these would be moved to default preferences in the corresponding app glue packages. For the add-on case we could set the default preference programmatically.
Depends on: 570573
Assignee: nobody → philipp
Attached patch v1 (obsolete) — Splinter Review
Set relevant default preferences programmatically in app specific overlays, making app-specific code paths in the sync library unnecessary. I'm not entirely happy with having to import utils.js now, but if we go through Weave.Service again we trigger Weave.Service.onStartup and thus _registerEngines before having set the default prefs.
Attachment #451684 - Flags: review?(mconnor)
Attached patch v1.1Splinter Review
Rebased patch on tip after s/weave/services-sync/ (bug 570636) was landed.
Attachment #451684 - Attachment is obsolete: true
Attachment #451729 - Flags: review?(mconnor)
Attachment #451684 - Flags: review?(mconnor)
Attachment #451729 - Flags: review?(mconnor) → review+
Blocks: 571902
Keywords: checkin-needed
http://hg.mozilla.org/services/fx-sync/rev/e5bce5ae1712 Set relevant default preferences programmatically in app specific overlays, making app-specific code paths in the sync library unnecessary.
Status: NEW → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 1.4
Flags: blocking-fx-sync1.4+
Blocks: 573899
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: