зеркало из https://github.com/mozilla/gecko-dev.git
Bug 762620 - Force last idle-daily time to be saved. r=blassey
This commit is contained in:
Родитель
7ad6524e65
Коммит
9466643cb1
|
@ -100,6 +100,13 @@ nsIdleServiceDaily::Observe(nsISupports *,
|
|||
PRInt32 nowSec = static_cast<PRInt32>(PR_Now() / PR_USEC_PER_SEC);
|
||||
Preferences::SetInt(PREF_LAST_DAILY, nowSec);
|
||||
|
||||
// Force that to be stored so we don't retrigger twice a day under
|
||||
// any circumstances.
|
||||
nsIPrefService* prefs = Preferences::GetService();
|
||||
if (prefs) {
|
||||
prefs->SavePrefFile(nsnull);
|
||||
}
|
||||
|
||||
#ifdef ANDROID
|
||||
__android_log_print(ANDROID_LOG_INFO, "IdleService", "Storing last idle time as %d",
|
||||
nowSec);
|
||||
|
|
Загрузка…
Ссылка в новой задаче