зеркало из https://github.com/mozilla/pjs.git
improve API a little
This commit is contained in:
Родитель
b02adbe6c4
Коммит
30afcb69c3
|
@ -53,9 +53,10 @@ interface nsIExtensionManager : nsISupports
|
|||
void installTheme(in string aThemeID);
|
||||
void uninstallTheme(in string aThemeID);
|
||||
|
||||
const unsigned short MISMATCH_RESULT_OK = 0x00;
|
||||
const unsigned short MISMATCH_RESULT_RESTART = 0x01;
|
||||
unsigned short checkForMismatches();
|
||||
/**
|
||||
* Returns true if mismatches were found and the app needs to restart.
|
||||
*/
|
||||
boolean checkForMismatches();
|
||||
|
||||
void update([array, size_is(aItemCount)] in nsIUpdateItem aItems,
|
||||
in unsigned long aItemCount);
|
||||
|
|
|
@ -170,7 +170,7 @@ nsExtensionManager.prototype = {
|
|||
|
||||
checkForMismatches: function ()
|
||||
{
|
||||
var rv = nsIExtensionManager.MISMATCH_RESULT_OK;
|
||||
var rv = false;
|
||||
|
||||
// Check to see if the version of the application that is being started
|
||||
// now is the same one that was started last time.
|
||||
|
@ -200,7 +200,7 @@ nsExtensionManager.prototype = {
|
|||
nsIUpdateService.SOURCE_EVENT_MISMATCH,
|
||||
null);
|
||||
|
||||
rv = nsIExtensionManager.MISMATCH_RESULT_RESTART;
|
||||
rv = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче