Bug 820135 - Preferences: We don't save prefs when we reboot. r=cjones

This commit is contained in:
Gregor Wagner
2012-12-11 22:39:25 -08:00
parent f9088efb24
commit 1a49cf5ea0
2 changed files with 3 additions and 0 deletions

View File

@@ -141,6 +141,7 @@ PowerManagerService::Restart()
StartForceQuitWatchdog(eHalShutdownMode_Restart, mWatchdogTimeoutSecs);
// To synchronize any unsaved user data before restarting.
SyncProfile();
sync();
_exit(0);
MOZ_NOT_REACHED();
return NS_OK;

View File

@@ -14,12 +14,14 @@ namespace hal_impl {
void
Reboot()
{
sync();
reboot(RB_AUTOBOOT);
}
void
PowerOff()
{
sync();
reboot(RB_POWER_OFF);
}