mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 829121 - Annotate B2G_OS_Version for the crash reporter. r=fabrice
--HG-- extra : rebase_source : 30d533413d9fa022bb30c504632a0fed340b9322
This commit is contained in:
parent
54ff3d3eaa
commit
620c8a55dd
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user