backout of bug 1161579 - blocking smoketests. a=RyanVM

This commit is contained in:
aus@mozilla.com 2015-05-06 11:25:29 -07:00
parent 6e929ef81c
commit 16141b0b23

View File

@ -3496,15 +3496,10 @@ Checker.prototype = {
if (AppConstants.platform == "gonk") { if (AppConstants.platform == "gonk") {
let sysLibs = {}; let sysLibs = {};
Cu.import("resource://gre/modules/systemlibs.js", sysLibs); Cu.import("resource://gre/modules/systemlibs.js", sysLibs);
let productDevice = sysLibs.libcutils.property_get("ro.product.device");
let buildType = sysLibs.libcutils.property_get("ro.build.type");
url = url.replace(/%PRODUCT_MODEL%/g, url = url.replace(/%PRODUCT_MODEL%/g,
sysLibs.libcutils.property_get("ro.product.model")); sysLibs.libcutils.property_get("ro.product.model"));
if (buildType == "user") { url = url.replace(/%PRODUCT_DEVICE%/g,
url = url.replace(/%PRODUCT_DEVICE%/g, productDevice); sysLibs.libcutils.property_get("ro.product.device"));
} else {
url = url.replace(/%PRODUCT_DEVICE%/g, productDevice + "-" + buildType);
}
url = url.replace(/%B2G_VERSION%/g, url = url.replace(/%B2G_VERSION%/g,
getPref("getCharPref", PREF_APP_B2G_VERSION, null)); getPref("getCharPref", PREF_APP_B2G_VERSION, null));
} }