Closed Bug 54937 Opened 24 years ago Closed 24 years ago

Profile js code should use profile as a service not component

Categories

(SeaMonkey :: Startup & Profiles, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ccarlen, Assigned: ccarlen)

Details

The code here:
<http://lxr.mozilla.org/seamonkey/source/profile/resources/content/createProfileWizard.js#26>
creates an instance of the profile mgr. It should instead get it as a service.
This problem causes some ugly business in nsProfile's constructor/destructor
because it needs to make sure that it initializes its registry access only once.
Ben, feel free to reassign this to me if you're busy.
Reassigning to myself because I need to touch this file for bug 46866 and I can
do it then.
Assignee: ben → ccarlen
Summary: Profile js code should use profile as a service not component → Profile js code should use profile as a service not component
I've made the change and it's getting reviewed.
Status: NEW → ASSIGNED
Fix checked into trunk. Verify by seeing that the calls to
createInstance(nsIProfile) have been replaced by getService in the profile front
end js code.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verified code change
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.