toolkit/mozapps/extensions/test/addons/test_updateid3_3/bootstrap.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:72faef32f5db
1 Components.utils.import("resource://gre/modules/Services.jsm");
2
3 function install(data, reason) {
4 Services.prefs.setIntPref("bootstraptest.installed_version", 3);
5 Services.prefs.setIntPref("bootstraptest.install_reason", reason);
6 }
7
8 function startup(data, reason) {
9 Services.prefs.setIntPref("bootstraptest.active_version", 3);
10 Services.prefs.setIntPref("bootstraptest.startup_reason", reason);
11 }
12
13 function shutdown(data, reason) {
14 Services.prefs.setIntPref("bootstraptest.active_version", 0);
15 Services.prefs.setIntPref("bootstraptest.shutdown_reason", reason);
16 }
17
18 function uninstall(data, reason) {
19 Services.prefs.setIntPref("bootstraptest.installed_version", 0);
20 Services.prefs.setIntPref("bootstraptest.uninstall_reason", reason);
21 }

mercurial