bug 635814 - add shellName and shellVersion to nsSystemInfo r=dougt a=2.0+

This commit is contained in:
Brad Lassey 2011-03-01 19:32:32 -05:00
parent e79483f9b4
commit 4b4150a43d

View File

@ -155,7 +155,7 @@ nsSystemInfo::Init()
if (version >= 8 && mozilla::AndroidBridge::Bridge()->GetStaticStringField("android/os/Build", "HARDWARE", str))
SetPropertyAsAString(NS_LITERAL_STRING("hardware"), str);
SetPropertyAsAString(NS_LITERAL_STRING("shellName"), NS_LITERAL_STRING("Android"));
if (mozilla::AndroidBridge::Bridge()->GetStaticStringField("android/os/Build", "CODENAME", str)) {
if (mozilla::AndroidBridge::Bridge()->GetStaticStringField("android/os/Build$VERSION", "CODENAME", str)) {
if (version) {
str.Append(NS_LITERAL_STRING(" ("));
str.AppendInt(version);