From 02404d5c47d17c0d8f81f1e1646c7a4cab323826 Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Fri, 30 Oct 2015 22:19:56 -0700 Subject: [PATCH] Bug 643633 - Remove TTLs from form history records. r=markh,nalexander --- .../base/sync/repositories/domain/FormHistoryRecord.java | 2 +- services/sync/modules/engines/forms.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/android/base/sync/repositories/domain/FormHistoryRecord.java b/mobile/android/base/sync/repositories/domain/FormHistoryRecord.java index 4209c225617..5c1f10dd21f 100644 --- a/mobile/android/base/sync/repositories/domain/FormHistoryRecord.java +++ b/mobile/android/base/sync/repositories/domain/FormHistoryRecord.java @@ -22,7 +22,7 @@ public class FormHistoryRecord extends Record { public static final String COLLECTION_NAME = "forms"; private static final String PAYLOAD_NAME = "name"; private static final String PAYLOAD_VALUE = "value"; - public static final long FORMS_TTL = 60 * 24 * 60 * 60; // 60 days in seconds. + public static final long FORMS_TTL = 3 * 365 * 24 * 60 * 60; // Three years in seconds. /** * The name of the saved form field. diff --git a/services/sync/modules/engines/forms.js b/services/sync/modules/engines/forms.js index 7ddb7a90b44..dc84485bf1b 100644 --- a/services/sync/modules/engines/forms.js +++ b/services/sync/modules/engines/forms.js @@ -16,7 +16,7 @@ Cu.import("resource://services-sync/util.js"); Cu.import("resource://services-sync/constants.js"); Cu.import("resource://gre/modules/Log.jsm"); -const FORMS_TTL = 5184000; // 60 days +const FORMS_TTL = 3 * 365 * 24 * 60 * 60; // Three years in seconds. this.FormRec = function FormRec(collection, id) { CryptoWrapper.call(this, collection, id);