Bug 829121 - Annotate B2G_OS_Version for the crash reporter. r=fabrice

--HG--
extra : rebase_source : 30d533413d9fa022bb30c504632a0fed340b9322
This commit is contained in:
Hubert Figuière 2013-01-11 00:47:32 +01:00
parent 54ff3d3eaa
commit 620c8a55dd

View File

@ -221,8 +221,20 @@ var shell = {
let androidVersion = libcutils.property_get("ro.build.version.sdk") +
"(" + libcutils.property_get("ro.build.version.codename") + ")";
cr.annotateCrashReport("Android_Version", androidVersion);
SettingsListener.observe("deviceinfo.os", "", function(value) {
try {
let cr = Cc["@mozilla.org/xre/app-info;1"]
.getService(Ci.nsICrashReporter);
cr.annotateCrashReport("B2G_OS_Version", value);
} catch(e) {
dump("exception: " + e);
}
});
#endif
} catch(e) { }
} catch(e) {
dump("exception: " + e);
}
let homeURL = this.homeURL;
if (!homeURL) {