xpfe should use mozilla::Preferences

RESOLVED FIXED in mozilla7

Status

()

RESOLVED FIXED
8 years ago
9 months ago

People

(Reporter: masayuki, Assigned: masayuki)

Tracking

Trunk
mozilla7
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

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+
Merged:
http://hg.mozilla.org/mozilla-central/rev/1653c994c505
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → mozilla7
Moving to Core:XUL per https://bugzilla.mozilla.org/show_bug.cgi?id=1455336
Component: XP Toolkit/Widgets: XUL → XUL
You need to log in before you can comment on or make changes to this bug.