Bug 633221 - Setting FF as default browser throws error when GIO Service is not available [r=roc, a=roc]

This commit is contained in:
Tim Taubert
2011-02-15 09:19:36 +01:00
parent 73b2a31593
commit c6c7ade378
3 changed files with 16 additions and 1 deletions

View File

@@ -230,7 +230,7 @@ nsGNOMEShellService::SetDefaultBrowser(PRBool aClaimAllTypes,
nsresult rv;
nsCOMPtr<nsIGIOService> giovfs =
do_GetService(NS_GIOSERVICE_CONTRACTID, &rv);
NS_ENSURE_SUCCESS(rv, rv);
NS_ENSURE_SUCCESS(rv, NS_OK);
nsCOMPtr<nsIStringBundleService> bundleService =
do_GetService(NS_STRINGBUNDLE_CONTRACTID, &rv);