rem:   passwordManager.addUser(aUsername, aUsername, aPassword); 
add:   passwordManager.addUser(aUsername, aUsername, aPassword); } else if (Cc["@mozilla.org/login-manager;1"]) {  var loginManager = Cc["@mozilla.org/login-manager;1"]. getService(Ci.nsILoginManager); var hostname = "chrome: encodeURIComponent(aUsername); var logins = loginManager.findLogins({}, hostname, null, "Google Calendar"); if (logins.length > 0) { var loginInfo = logins[0].clone(); loginInfo.password = aPassword; loginManager.modifyLogin(logins[0], loginInfo); } else { var loginInfo = Cc["@mozilla.org/login-manager/loginInfo;1"]. createInstance(Ci.nsILoginInfo); loginInfo.init(hostname, null, "Google Calendar", aUsername, aPassword, null, null); loginManager.addLogin(loginInfo); } } 
context: function passwordManagerSave(aUsername, aPassword) {    ASSERT(aUsername);    ASSERT(aPassword);    var passwordManager = Cc["@mozilla.org/passwordmanager;1"].                          getService(Ci.nsIPasswordManager);    // The realm and the username are the same, since we only save    // credentials per session, which only needs a user and a password    passwordManager.addUser(aUsername, aUsername, aPassword);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/919c58506a1502db07eea15e76b42780eff314d2/calGoogleUtils.js/clean/calendar/providers/gdata/components/calGoogleUtils.js