Closed Bug 782287 Opened 13 years ago Closed 13 years ago

minor SocialService cleanup

Categories

(Firefox Graveyard :: SocialAPI, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 17

People

(Reporter: Gavin, Assigned: Gavin)

Details

Attachments

(1 file)

A couple of small changes: - move the initialization code into its own function to clearly delineate it from the lazy provider loading - lazy load the MozSocialAPI module, and only load it if social is enabled
Attached patch patchSplinter Review
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attachment #651397 - Flags: review?(adw)
Comment on attachment 651397 [details] [diff] [review] patch Review of attachment 651397 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/components/social/SocialService.jsm @@ +44,5 @@ > +} > + > +XPCOMUtils.defineLazyGetter(SocialServiceInternal, "providers", function () { > + // Initialize the service > + initService(); This comment is useless.
Attachment #651397 - Flags: review?(adw) → review+
Flags: in-testsuite-
Target Milestone: --- → Firefox 17
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: