Bug 879172 - Recognize a device as Sony as soon as its Manufacturer string contains Sony as substring - r=joe
☠☠ backed out by bcf3b603a662 ☠ ☠
authorBenoit Jacob <bjacob@mozilla.com>
Tue, 11 Jun 2013 14:55:13 -0400
changeset 134669 90f4975ba98694ff2900f0dd2579d467907be223
parent 134668 1df122edcf0d11d391a9ccd89ff41a3c9ea92cae
child 134676 5fd0dc3b821bbcb8490c93ba585e45e22eaa6063
push id29325
push userbjacob@mozilla.com
push dateTue, 11 Jun 2013 18:55:45 +0000
treeherdermozilla-inbound@90f4975ba986 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjoe
bugs879172
milestone24.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 879172 - Recognize a device as Sony as soon as its Manufacturer string contains Sony as substring - r=joe
widget/android/GfxInfo.cpp
--- a/widget/android/GfxInfo.cpp
+++ b/widget/android/GfxInfo.cpp
@@ -478,17 +478,17 @@ GfxInfo::GetFeatureStatusImpl(int32_t aF
           cModel.Find("SPH-L710", true) != -1 ||
           cModel.Find("GT-I8190", true) != -1 ||
           cModel.Find("GT-P3100", true) != -1 ||
           cModel.Find("GT-P3110", true) != -1 ||
           cModel.Find("GT-P3113", true) != -1 ||
           cModel.Find("GT-P5100", true) != -1 ||
           cModel.Find("GT-P5110", true) != -1 ||
           cModel.Find("GT-P5113", true) != -1 ||
-          cManufacturer.Equals("Sony", nsCaseInsensitiveCStringComparator());
+          cManufacturer.Find("Sony", nsCaseInsensitiveCStringComparator()) != -1;
 
         if (isBlocklisted) {
           *aStatus = nsIGfxInfo::FEATURE_BLOCKED_DEVICE;
           return NS_OK;
         }
       }
     }
   }