Bug 857833 - Remove some warnings in toolkit/xre/nsAppRunner.cpp. r=bsmedberg

This commit is contained in:
Justin Lebar 2013-04-21 16:41:18 -04:00
parent 7614ad70f0
commit 79171233a7

View File

@ -617,7 +617,6 @@ NS_IMETHODIMP
nsXULAppInfo::GetVendor(nsACString& aResult) nsXULAppInfo::GetVendor(nsACString& aResult)
{ {
if (XRE_GetProcessType() == GeckoProcessType_Content) { if (XRE_GetProcessType() == GeckoProcessType_Content) {
NS_WARNING("Attempt to get unavailable information in content process.");
return NS_ERROR_NOT_AVAILABLE; return NS_ERROR_NOT_AVAILABLE;
} }
aResult.Assign(gAppData->vendor); aResult.Assign(gAppData->vendor);
@ -629,7 +628,6 @@ NS_IMETHODIMP
nsXULAppInfo::GetName(nsACString& aResult) nsXULAppInfo::GetName(nsACString& aResult)
{ {
if (XRE_GetProcessType() == GeckoProcessType_Content) { if (XRE_GetProcessType() == GeckoProcessType_Content) {
NS_WARNING("Attempt to get unavailable information in content process.");
return NS_ERROR_NOT_AVAILABLE; return NS_ERROR_NOT_AVAILABLE;
} }
aResult.Assign(gAppData->name); aResult.Assign(gAppData->name);
@ -641,7 +639,6 @@ NS_IMETHODIMP
nsXULAppInfo::GetID(nsACString& aResult) nsXULAppInfo::GetID(nsACString& aResult)
{ {
if (XRE_GetProcessType() == GeckoProcessType_Content) { if (XRE_GetProcessType() == GeckoProcessType_Content) {
NS_WARNING("Attempt to get unavailable information in content process.");
return NS_ERROR_NOT_AVAILABLE; return NS_ERROR_NOT_AVAILABLE;
} }
aResult.Assign(gAppData->ID); aResult.Assign(gAppData->ID);
@ -695,7 +692,6 @@ NS_IMETHODIMP
nsXULAppInfo::GetUAName(nsACString& aResult) nsXULAppInfo::GetUAName(nsACString& aResult)
{ {
if (XRE_GetProcessType() == GeckoProcessType_Content) { if (XRE_GetProcessType() == GeckoProcessType_Content) {
NS_WARNING("Attempt to get unavailable information in content process.");
return NS_ERROR_NOT_AVAILABLE; return NS_ERROR_NOT_AVAILABLE;
} }
aResult.Assign(gAppData->UAName); aResult.Assign(gAppData->UAName);