Bug 698868 - Add "Product" to Adapter Description for Android. r=bgirard
authorAli Juma <ajuma@mozilla.com>
Wed, 02 Nov 2011 09:45:47 -0400
changeset 79571 1cab0ad00ce7ddb46b5843850f91516499f22120
parent 79570 debd724ba3c889fef41c69211862fee8cb2e6bd2
child 79572 98892c213475a5c07dfa4ee79226be8772050028
push id3055
push userajuma@mozilla.com
push dateWed, 02 Nov 2011 13:47:54 +0000
treeherdermozilla-inbound@1cab0ad00ce7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgirard
bugs698868
milestone10.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 698868 - Add "Product" to Adapter Description for Android. r=bgirard
widget/src/android/GfxInfo.cpp
--- a/widget/src/android/GfxInfo.cpp
+++ b/widget/src/android/GfxInfo.cpp
@@ -95,16 +95,19 @@ NS_IMETHODIMP
 GfxInfo::GetAdapterDescription(nsAString & aAdapterDescription)
 {
   aAdapterDescription.AssignASCII(mozilla::gl::GetVendor());
   if (mozilla::AndroidBridge::Bridge()) {
       nsAutoString str;
       aAdapterDescription.Append(NS_LITERAL_STRING(", Model: '"));
       if (mozilla::AndroidBridge::Bridge()->GetStaticStringField("android/os/Build", "MODEL", str))
         aAdapterDescription.Append(str);
+      aAdapterDescription.Append(NS_LITERAL_STRING("', Product: '"));
+      if (mozilla::AndroidBridge::Bridge()->GetStaticStringField("android/os/Build", "PRODUCT", str))
+        aAdapterDescription.Append(str);
       aAdapterDescription.Append(NS_LITERAL_STRING("', Manufacturer: '"));
       if (mozilla::AndroidBridge::Bridge()->GetStaticStringField("android/os/Build", "MANUFACTURER", str))
         aAdapterDescription.Append(str);
       aAdapterDescription.Append(NS_LITERAL_STRING("', Hardware: '"));
       if (mozilla::AndroidBridge::Bridge()->GetStaticStringField("android/os/Build", "HARDWARE", str))
         aAdapterDescription.Append(str);
       aAdapterDescription.Append(NS_LITERAL_STRING("'"));
   }