mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 820135 - Preferences: We don't save prefs when we reboot. r=cjones
This commit is contained in:
parent
efe964d8a2
commit
06088ea2ad
@ -141,6 +141,9 @@ PowerManagerService::Restart()
|
||||
StartForceQuitWatchdog(eHalShutdownMode_Restart, mWatchdogTimeoutSecs);
|
||||
// To synchronize any unsaved user data before restarting.
|
||||
SyncProfile();
|
||||
#ifdef XP_UNIX
|
||||
sync();
|
||||
#endif
|
||||
_exit(0);
|
||||
MOZ_NOT_REACHED();
|
||||
return NS_OK;
|
||||
|
@ -14,12 +14,14 @@ namespace hal_impl {
|
||||
void
|
||||
Reboot()
|
||||
{
|
||||
sync();
|
||||
reboot(RB_AUTOBOOT);
|
||||
}
|
||||
|
||||
void
|
||||
PowerOff()
|
||||
{
|
||||
sync();
|
||||
reboot(RB_POWER_OFF);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user