Bug 1430018 - Fixed wrong profile param name at DBusRemoteClient::DoSendDBusCommandLine(), r?jhorak
MozReview-Commit-ID: 6KKEwjLXTR9
--- a/widget/xremoteclient/DBusRemoteClient.cpp
+++ b/widget/xremoteclient/DBusRemoteClient.cpp
@@ -84,17 +84,17 @@ DBusRemoteClient::DoSendDBusCommandLine(
{
if(!aProfile || aProfile[0] == '\0') {
return NS_ERROR_INVALID_ARG;
}
// D-Bus names can contain only [a-z][A-Z][0-9]_
// characters so adjust the profile string properly.
nsAutoCString profileName;
- nsresult rv = mozilla::Base64Encode(nsAutoCString(aProfileName), profileName);
+ nsresult rv = mozilla::Base64Encode(nsAutoCString(aProfile), profileName);
NS_ENSURE_SUCCESS(rv, rv);
profileName.ReplaceChar("+/=", '_');
nsAutoCString destinationName;
destinationName = nsPrintfCString("org.mozilla.%s.%s", aProgram, profileName.get());
nsAutoCString pathName;
pathName = nsPrintfCString("/org/mozilla/%s/Remote", aProgram);