зеркало из https://github.com/mozilla/gecko-dev.git
Fix lingering error from changing IPDL methods from returning nsresult to bool
This commit is contained in:
Родитель
46ad34660e
Коммит
3eca5f643b
|
@ -501,10 +501,7 @@ XRE_SendTestShellCommand(JSContext* aCx,
|
||||||
nsDependentString command((PRUnichar*)JS_GetStringChars(aCommand),
|
nsDependentString command((PRUnichar*)JS_GetStringChars(aCommand),
|
||||||
JS_GetStringLength(aCommand));
|
JS_GetStringLength(aCommand));
|
||||||
if (!aCallback) {
|
if (!aCallback) {
|
||||||
if (NS_FAILED(gTestShellParent->SendExecuteCommand(command))) {
|
return gTestShellParent->SendExecuteCommand(command);
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TestShellCommandParent* callback = static_cast<TestShellCommandParent*>(
|
TestShellCommandParent* callback = static_cast<TestShellCommandParent*>(
|
||||||
|
|
Загрузка…
Ссылка в новой задаче