mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
NOT PART OF THE BUILD
This commit is contained in:
parent
0e61917f36
commit
53d8602690
@ -59,7 +59,7 @@ nsAbSyncDriver::OnStartAuthOperation(void)
|
||||
PRUnichar *outValue = nsnull;
|
||||
|
||||
// Tweak the button...
|
||||
mStatus->StopMeteors();
|
||||
mStatus->StartMeteors();
|
||||
|
||||
outValue = GetString(NS_ConvertASCIItoUCS2("syncStartingAuth").GetUnicode());
|
||||
|
||||
|
@ -469,12 +469,12 @@ NS_IMETHODIMP nsAbSync::OnStatus(PRInt32 aTransactionID, const PRUnichar *aMsg)
|
||||
/* void OnStopOperation (in PRInt32 aTransactionID, in nsresult aStatus, in wstring aMsg, out string aProtocolResponse); */
|
||||
NS_IMETHODIMP nsAbSync::OnStopOperation(PRInt32 aTransactionID, nsresult aStatus, const PRUnichar *aMsg, const char *aProtocolResponse)
|
||||
{
|
||||
nsresult rv;
|
||||
nsresult rv = aStatus;
|
||||
|
||||
//
|
||||
// Now, figure out what the server told us to do with the sync operation.
|
||||
//
|
||||
if (aProtocolResponse)
|
||||
if ( (aProtocolResponse) && (NS_SUCCEEDED(aStatus)) )
|
||||
rv = ProcessServerResponse(aProtocolResponse);
|
||||
|
||||
NotifyListenersOnStopSync(aTransactionID, rv, aMsg);
|
||||
@ -591,11 +591,11 @@ NS_IMETHODIMP nsAbSync::PerformAbSync(PRInt32 *aTransactionID)
|
||||
|
||||
// Ok, add the header to this protocol string information...
|
||||
if (mPostString.IsEmpty())
|
||||
prefixStr = PR_smprintf("last=%u&protocol=%d&client=2&ver=%s&user=%s",
|
||||
mLastChangeNum, ABSYNC_PROTOCOL, ABSYNC_VERSION, "RHPizzarro");
|
||||
prefixStr = PR_smprintf("last=%u&protocol=%d&client=2&ver=%s",
|
||||
mLastChangeNum, ABSYNC_PROTOCOL, ABSYNC_VERSION);
|
||||
else
|
||||
prefixStr = PR_smprintf("last=%u&protocol=%d&client=2&ver=%s&user=%s&",
|
||||
mLastChangeNum, ABSYNC_PROTOCOL, ABSYNC_VERSION, "RHPizzarro");
|
||||
prefixStr = PR_smprintf("last=%u&protocol=%d&client=2&ver=%s&",
|
||||
mLastChangeNum, ABSYNC_PROTOCOL, ABSYNC_VERSION);
|
||||
if (!prefixStr)
|
||||
{
|
||||
rv = NS_ERROR_OUT_OF_MEMORY;
|
||||
|
@ -101,6 +101,7 @@ nsAbSyncPostEngine::nsAbSyncPostEngine()
|
||||
mAuthenticationRunning = PR_TRUE;
|
||||
mCookie = nsnull;
|
||||
mSyncSpec = nsnull;
|
||||
mSyncProtocolRequest = nsnull;
|
||||
}
|
||||
|
||||
nsAbSyncPostEngine::~nsAbSyncPostEngine()
|
||||
|
Loading…
Reference in New Issue
Block a user