Closed Bug 854927 Opened 12 years ago Closed 12 years ago

Remove callback from new async getCharsetForURI in PlacesUtils

Categories

(Toolkit :: Places, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: raymondlee, Assigned: raymondlee)

References

Details

Attachments

(1 file, 1 obsolete file)

Summary: Remove callback from getCharsetForURI in PlacesUtils → Remove callback from new async getCharsetForURI in PlacesUtils
Remove the callback from the new async getChaersetForURI, since we can use the promise as getCharsetForURI(...).then(callback)
Attached patch v1 (obsolete) (deleted) — Splinter Review
http://mxr.mozilla.org/mozilla-central/ident?i=getCharsetForURI doesn't show any callers are using the second argument so it's safe to remove that.
Attachment #729998 - Flags: review?(mak77)
Status: NEW → ASSIGNED
Comment on attachment 729998 [details] [diff] [review] v1 Review of attachment 729998 [details] [diff] [review]: ----------------------------------------------------------------- yep, sorry for the double change here, my fault. We never need to provide both a promise and a callback hook, since the promise can do callbacks.
Attachment #729998 - Flags: review?(mak77) → review+
Attached patch Patch for check-in (deleted) — Splinter Review
Attachment #729998 - Attachment is obsolete: true
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: