nsUpdateTimerManager - Mode C tab-width 8 indent-tabs-mode...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* [email protected] 39 "e:\builds\moz2_slave\win32_build\build\toolkit\mozapps\update\src\nsUpdateTimerMan ager.js" */ Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); const Cc = Components.classes; const Ci = Components.interfaces; const PREF_APP_UPDATE_LASTUPDATETIME_FMT = "app.update.lastUpdateTime.%ID%"; const PREF_APP_UPDATE_TIMER = "app.update.timer"; const PREF_APP_UPDATE_LOG = "app.update.log"; const CATEGORY_UPDATE_TIMER = "update-timer"; XPCOMUtils.defineLazyServiceGetter(this, "gPref", "@mozilla.org/preferences-service;1", "nsIPrefBranch2"); XPCOMUtils.defineLazyServiceGetter(this, "gConsole", "@mozilla.org/consoleservice;1", "nsIConsoleService"); XPCOMUtils.defineLazyGetter(this, "gLogEnabled", function tm_gLogEnabled() { return getPref("getBoolPref", PREF_APP_UPDATE_LOG, false); }); function getObserverService() { return Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService); } /** [email protected] 78 "e:\builds\moz2_slave\win32_build\build\toolkit\mozapps\update\src\nsUpdateTimerMan ager.js" */ function getPref(func, preference, defaultValue) { try { return gPref[func](preference); } catch (e) { } return defaultValue; } /** [email protected] 92 "e:\builds\moz2_slave\win32_build\build\toolkit\mozapps\update\src\nsUpdateTimerMan ager.js" */ function LOG(string) { if (gLogEnabled) { dump("*** UTM:SVC " + string + "\n"); gConsole.logStringMessage("UTM:SVC " + string); } }
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
/** [email protected] 104 "e:\builds\moz2_slave\win32_build\build\toolkit\mozapps\update\src\nsUpdateTimerMan
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/11/2010 for the course ISD 125 taught by Professor 3ant during the Spring '10 term at École Normale Supérieure.

Page1 / 4

nsUpdateTimerManager - Mode C tab-width 8 indent-tabs-mode...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online