Closed
Bug 281322
Opened 20 years ago
Closed 19 years ago
Minimo should use the newer nsIPrefService APIs instead of nsIPref
Categories
(Minimo Graveyard :: General, defect)
Minimo Graveyard
General
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: vhaarr+bmo, Assigned: vhaarr+bmo)
References
()
Details
Attachments
(1 file, 4 obsolete files)
|
2.18 KB,
patch
|
vhaarr+bmo
:
review+
|
Details | Diff | Splinter Review |
Rid the source of nsIPref!
| Assignee | ||
Comment 1•20 years ago
|
||
I found this code quite strange, with all the do_CreateInstance.
Comment 2•20 years ago
|
||
+ nsCOMPtr<nsIPrefBranch> pref = do_GetService(NS_PREF_CONTRACTID); use should use NS_PREFSERVICE_CONTRACTID for the new nsIPrefService-interfaces
| Assignee | ||
Comment 3•20 years ago
|
||
That's what you get for not compiling :P I don't know how to build Minimo, but if someone tells me, I'll do that. In any case, the bug was more for bugging dougt about doing do_CreateInstance :)
Attachment #173583 -
Attachment is obsolete: true
| Assignee | ||
Comment 4•20 years ago
|
||
heh, forgot a do_CreateInstance
Attachment #173645 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•19 years ago
|
||
updated to fix bitrot
Attachment #173649 -
Attachment is obsolete: true
Attachment #195020 -
Flags: review?(dougt)
Comment 6•19 years ago
|
||
Comment on attachment 195020 [details] [diff] [review] version 0.4 looks fine.
Attachment #195020 -
Flags: review?(dougt) → review+
| Assignee | ||
Comment 7•19 years ago
|
||
I just found <http://lxr.mozilla.org/mozilla/source/embedding/minimo/app/mozilla_api.cpp#260>, which needs to be fixed as well, but I'm not quite sure what needs to be done there.
Comment 8•19 years ago
|
||
(In reply to comment #7) > <http://lxr.mozilla.org/mozilla/source/embedding/minimo/app/mozilla_api.cpp#260>, > which needs to be fixed as well, but I'm not quite sure what needs to be done there. what needs fixing there?
| Assignee | ||
Comment 9•19 years ago
|
||
I removed -#define PREF_ID NS_PREF_CONTRACTID in attachment 195020 [details] [diff] [review] ... Problem is I'm not sure if nsCOMPtr<nsIPrefService> prefService = do_GetService (PREF_ID); is the right way of getting a pref service or not, but I'm sure you know, biesi :-) If it is, the fix is simply to switch it for nsCOMPtr<nsIPrefService> prefService = do_GetService (NS_PREF_CONTRACTID); (Why the #define PREF_ID NS_PREF_CONTRACTID anyway?)
Comment 10•19 years ago
|
||
oh. just use do_GetService(NS_PREFSERVICE_CONTRACTID);
| Assignee | ||
Comment 11•19 years ago
|
||
I've been trying to build Minimo a few times now with different .mozconfigs, but I keep getting compile errors related to XFT - so I can't really check if the patch builds :-/ It should be alright now, though. I've grep'ed through the source and PREF_ID isn't used anywhere else, so there shouldn't be any compile errors.
Attachment #195020 -
Attachment is obsolete: true
Attachment #195037 -
Flags: review+
Comment 12•19 years ago
|
||
embedding/minimo/app is deprecated.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•