rem:   if (entry.host == aUsername) { aPassword.value = entry.password; 
add:   if (entry.host == aUsername) { aPassword.value = entry.password; return true; } } } else if (Cc["@mozilla.org/login-manager;1"]) {  var loginManager = Cc["@mozilla.org/login-manager;1"]. getService(Ci.nsILoginManager); if (!loginManager.getLoginSavingEnabled(aUsername)) { return false; }       var hostname = "chrome: encodeURIComponent(aUsername); var logins = loginManager.findLogins({}, hostname, null, "Google Calendar Login"); if (logins.length > 0) { aPassword.value = logins[0].password; 
context: function passwordManagerGet(aUsername, aPassword) {    if (typeof aPassword != "object") {        throw new Components.Exception("", Cr.NS_ERROR_XPC_NEED_OUT_OBJECT);    }    var passwordManager = Cc["@mozilla.org/passwordmanager;1"].                          getService(Ci.nsIPasswordManager);    var enumerator = passwordManager.enumerator;    while (enumerator.hasMoreElements()) {        var entry = enumerator.getNext().QueryInterface(Ci.nsIPassword);        // We only care about the "host" field, since the username field is the        // same for our purposes.        if (entry.host == aUsername) {            aPassword.value = entry.password;            return true;        }    }    return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/919c58506a1502db07eea15e76b42780eff314d2/calGoogleUtils.js/clean/calendar/providers/gdata/components/calGoogleUtils.js