Closed Bug 661101 Opened 14 years ago Closed 14 years ago

widget should use mozilla::Preferences (except win/cocoa/gtk2/xpwidgets)

Categories

(Core :: Widget, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla7

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached patch Patch v1.0 (obsolete) — Splinter Review
I'd like OS/2 guys to check this patch whether not causes bustage.
Attached patch Patch v1.1Splinter Review
Fix a nit for OS/2. We shouldn't use %s for nsPrintfCString.
Attachment #536541 - Attachment is obsolete: true
Attachment #536542 - Flags: feedback?(wuno)
Attachment #536542 - Flags: feedback?(mozilla)
Comment on attachment 536542 [details] [diff] [review] Patch v1.1 Since I no longer build on OS/2 I'd like to defer my feedback to Dave.
Attachment #536542 - Flags: feedback?(mozilla) → feedback?(daveryeo)
Comment on attachment 536542 [details] [diff] [review] Patch v1.1 If we didn't get feedback from OS/2 developers, I would drop the OS/2 change and land the other parts.
Attachment #536542 - Flags: review?(roc)
Comment on attachment 536542 [details] [diff] [review] Patch v1.1 Review of attachment 536542 [details] [diff] [review]: ----------------------------------------------------------------- Just land it.
Attachment #536542 - Flags: review?(roc) → review+
(In reply to comment #0) > I'd like OS/2 guys to check this patch whether not causes bustage. (In reply to comment #3) > If we didn't get feedback from OS/2 developers, I would drop the OS/2 change > and land the other parts. Sorry for the delay in responding. Go ahead with the OS/2 changes - it looks a lot simpler that the existing code. And, if it breaks something.. well, we're used to that :-) BTW... I seem to remember that Prefs was not thread-safe and should only be accessed from the primary thread. Is that still the case?
http://hg.mozilla.org/mozilla-central/rev/9014863a7e2a http://hg.mozilla.org/mozilla-central/rev/66cbdac56469 # the second backed out a part of 9014863a7e2a because it included another bug's draft patch accidentally.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
Attachment #536542 - Flags: feedback?(wuno)
Attachment #536542 - Flags: feedback?(daveryeo)
Comment on attachment 536542 [details] [diff] [review] Patch v1.1 >--- a/widget/src/os2/nsDeviceContextSpecOS2.cpp >+++ b/widget/src/os2/nsDeviceContextSpecOS2.cpp >@@ -657,9 +659,8 @@ nsresult GlobalPrinters::InitializeGloba > if (!mGlobalPrinterList) > return NS_ERROR_OUT_OF_MEMORY; > >- nsresult rv; >- nsCOMPtr<nsIPrefBranch> pPrefs = do_GetService(NS_PREFSERVICE_CONTRACTID, &rv); >- BOOL prefFailed = NS_FAILED(rv); // don't return on failure, optional feature >+ // don't return on failure, optional feature >+ BOOL prefFailed = (Preferences::GetRootBranch() != nsnull); != nsnull or == nsnull?
(In reply to comment #7) > Comment on attachment 536542 [details] [diff] [review] [review] > Patch v1.1 > > >--- a/widget/src/os2/nsDeviceContextSpecOS2.cpp > >+++ b/widget/src/os2/nsDeviceContextSpecOS2.cpp > >@@ -657,9 +659,8 @@ nsresult GlobalPrinters::InitializeGloba > > if (!mGlobalPrinterList) > > return NS_ERROR_OUT_OF_MEMORY; > > > >- nsresult rv; > >- nsCOMPtr<nsIPrefBranch> pPrefs = do_GetService(NS_PREFSERVICE_CONTRACTID, &rv); > >- BOOL prefFailed = NS_FAILED(rv); // don't return on failure, optional feature > >+ // don't return on failure, optional feature > >+ BOOL prefFailed = (Preferences::GetRootBranch() != nsnull); > > != nsnull or == nsnull? Oh... I'll post a followup patch.
Comment on attachment 537758 [details] [diff] [review] Fix the nit in nsDeviceContextSpecOS2.cpp Review of attachment 537758 [details] [diff] [review]: -----------------------------------------------------------------
Attachment #537758 - Flags: review?(roc) → review+
Hi. Is there any way I can test this? Do you have some STR? Thanks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: