Bug 788377 - Part 2: Rename type to contactType in Contact. r=gwagner

This commit is contained in:
Yoshi Huang 2012-09-07 15:57:22 +08:00
parent 54c0a989f0
commit c64ff0c04f
2 changed files with 6 additions and 6 deletions

View File

@ -550,13 +550,13 @@ ContactManager.prototype = {
return request;
},
getSimContacts: function(aType) {
getSimContacts: function(aContactType) {
let request;
request = this.createRequest();
let options = {type: aType};
let options = {contactType: aContactType};
let allowCallback = function() {
if (DEBUG) debug("getSimContacts " + aType);
if (DEBUG) debug("getSimContacts " + aContactType);
cpmm.sendAsyncMessage("Contacts:GetSimContacts",
{requestID: this.getRequestId({request: request, reason: "getSimContacts"}),
options: options});

View File

@ -149,11 +149,11 @@ let DOMContactManager = {
);
break;
case "Contacts:GetSimContacts":
let callback = function(aType, aContacts) {
if (DEBUG) debug("got SIM contacts: " + aType + " " + JSON.stringify(aContacts));
let callback = function(aContactType, aContacts) {
if (DEBUG) debug("got SIM contacts: " + aContactType + " " + JSON.stringify(aContacts));
mm.sendAsyncMessage("Contacts:GetSimContacts:Return:OK", {requestID: msg.requestID, contacts: aContacts});
};
mRIL.getICCContacts(msg.options.type, callback);
mRIL.getICCContacts(msg.options.contactType, callback);
break;
default:
if (DEBUG) debug("WRONG MESSAGE NAME: " + aMessage.name);