Bug 634555 - Do not fib in the child process about whether we have gotten mime info or not, r=blassey, sr=bz, a=blocking-fennec:2.0,blassey

This commit is contained in:
Brian Crowder 2011-02-23 13:52:47 -08:00
parent 780ff82ea8
commit c5197f8eeb

View File

@ -78,7 +78,7 @@ nsMIMEInfoAndroid::GetMimeInfoForMimeType(const nsACString& aMimeType,
// the mime type for now and let the system deal with it
if (!bridge){
info.forget(aMimeInfo);
return PR_TRUE;
return PR_FALSE;
}
nsIHandlerApp* systemDefault = nsnull;
@ -107,6 +107,7 @@ nsMIMEInfoAndroid::GetMimeInfoForFileExt(const nsACString& aFileExt,
if (mozilla::AndroidBridge::Bridge())
mozilla::AndroidBridge::Bridge()->
GetMimeTypeFromExtensions(aFileExt, mimeType);
return GetMimeInfoForMimeType(mimeType, aMimeInfo);
}