Bug 643633 - Remove TTLs from form history records. r=markh,nalexander, a=ritu
authorRichard Newman <rnewman@mozilla.com>
Fri, 30 Oct 2015 22:19:56 -0700
changeset 305443 1316e92edb7f12849097738e061c44645c5746a9
parent 305442 6a47a7d76eb720d4ad811dfe6c0327900c524fd0
child 305444 d7ab2f17e377dcd990b1dc3cd8ad6585d046d9a1
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh, nalexander, ritu
bugs643633
milestone44.0a2
Bug 643633 - Remove TTLs from form history records. r=markh,nalexander, a=ritu
mobile/android/base/sync/repositories/domain/FormHistoryRecord.java
services/sync/modules/engines/forms.js
--- a/mobile/android/base/sync/repositories/domain/FormHistoryRecord.java
+++ b/mobile/android/base/sync/repositories/domain/FormHistoryRecord.java
@@ -17,17 +17,17 @@ import org.mozilla.gecko.sync.repositori
  * @see "<a href='http://mxr.mozilla.org/services-central/source/services-central/services/sync/modules/engines/forms.js'>http://mxr.mozilla.org/services-central/source/services-central/services/sync/modules/engines/forms.js</a>."
  */
 public class FormHistoryRecord extends Record {
   private static final String LOG_TAG = "FormHistoryRecord";
 
   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.
    */
   public String fieldName;
 
   /**
    * The value of the saved form field.
--- a/services/sync/modules/engines/forms.js
+++ b/services/sync/modules/engines/forms.js
@@ -11,17 +11,17 @@ var Cu = Components.utils;
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 Cu.import("resource://services-sync/engines.js");
 Cu.import("resource://services-sync/record.js");
 Cu.import("resource://services-common/async.js");
 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);
 }
 FormRec.prototype = {
   __proto__: CryptoWrapper.prototype,
   _logName: "Sync.Record.Form",
   ttl: FORMS_TTL