Bug 782232 - Fix more cases where bool is returned instead of nsresult; r=josh

This commit is contained in:
Aryeh Gregor 2012-08-13 14:41:53 +03:00
parent 0923bf00ef
commit 248f3b6fa5

View File

@ -540,7 +540,7 @@ IsPluginEnabledForType(const nsCString& aMIMEType)
if (!pluginHost) {
NS_NOTREACHED("No pluginhost");
return false;
return NS_ERROR_FAILURE;
}
nsresult rv = pluginHost->IsPluginEnabledForType(aMIMEType.get());
@ -720,7 +720,7 @@ nsObjectLoadingContent::InstantiatePluginInstance()
if (!pluginHost) {
NS_NOTREACHED("No pluginhost");
return false;
return NS_ERROR_FAILURE;
}
// If you add early return(s), be sure to balance this call to