Closed Bug 782287 Opened 12 years ago Closed 12 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+
Tough but fair! :) Thanks for the review.

https://hg.mozilla.org/integration/mozilla-inbound/rev/227c29b3c0ee
Flags: in-testsuite-
Target Milestone: --- → Firefox 17
https://hg.mozilla.org/mozilla-central/rev/227c29b3c0ee
Status: ASSIGNED → RESOLVED
Closed: 12 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: