This commit is contained in:
ben%bengoodger.com 2004-04-26 09:27:27 +00:00
Родитель b02adbe6c4
Коммит 30afcb69c3
2 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -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;
}
}