Closed Bug 664969 Opened 13 years ago Closed 13 years ago

xpfe should use mozilla::Preferences

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla7

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file)

Attached patch Patch v1.0 (deleted) — Splinter Review
No description provided.
Attachment #540022 - Flags: review?(neil)
Comment on attachment 540022 [details] [diff] [review] Patch v1.0 >+ if (!Preferences::GetRootBranch()) { >+ return NS_ERROR_FAILURE; >+ } Don't need this, Preferences::GetInt null-checks sPreferences. r=me with that fixed. >+ rv = Preferences::GetInt("network.dir.format", &dirPref); > if (NS_SUCCEEDED(rv) && dirPref == FORMAT_XUL) { In fact, you could probably simplify this to if (Preferences::GetInt("network.dir.format") == FORMAT_XUL)
Attachment #540022 - Flags: review?(neil) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → mozilla7
Component: XP Toolkit/Widgets: XUL → XUL
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: