2010-04-29 13:11:23 -07:00
|
|
|
Components.utils.import("resource://gre/modules/Services.jsm");
|
|
|
|
|
2010-04-28 09:23:36 -07:00
|
|
|
function install(data, reason) {
|
|
|
|
Services.prefs.setIntPref("bootstraptest.installed_version", 1);
|
2010-04-29 13:11:23 -07:00
|
|
|
}
|
|
|
|
|
2010-04-28 09:23:36 -07:00
|
|
|
function startup(data, reason) {
|
|
|
|
Services.prefs.setIntPref("bootstraptest.active_version", 1);
|
|
|
|
Services.prefs.setIntPref("bootstraptest.startup_reason", reason);
|
|
|
|
}
|
|
|
|
|
|
|
|
function shutdown(data, reason) {
|
|
|
|
Services.prefs.setIntPref("bootstraptest.active_version", 0);
|
|
|
|
Services.prefs.setIntPref("bootstraptest.shutdown_reason", reason);
|
|
|
|
}
|
|
|
|
|
|
|
|
function uninstall(data, reason) {
|
|
|
|
Services.prefs.setIntPref("bootstraptest.installed_version", 0);
|
2010-04-29 13:11:23 -07:00
|
|
|
}
|