change pushDepthRecord to pushLiteral (takes an object instead of a resource; omits the resource upload filters step)
authorDan Mills <thunder@mozilla.com>
Fri, 02 Jan 2009 13:46:55 -0800
changeset 45151 e8145aadfafae7ae3e4eef1738a9be2ee0183db1
parent 45150 530503be0e34855720667b722e9845a1cd47790b
child 45152 dc44d86ca4ed0a0347b6b45b029b1d406983088f
push idunknown
push userunknown
push dateunknown
change pushDepthRecord to pushLiteral (takes an object instead of a resource; omits the resource upload filters step)
services/sync/modules/base_records/collection.js
--- a/services/sync/modules/base_records/collection.js
+++ b/services/sync/modules/base_records/collection.js
@@ -127,18 +127,18 @@ Collection.prototype = {
       let self = yield;
       yield record.filterUpload(self.cb); // XXX EEK
       this._data.push(this._json.decode(record.data)); // HACK HACK HACK
       self.done();
     };
     fn.async(this, onComplete, record);
   },
 
-  pushDepthRecord: function Coll_pushDepthRecord(record) {
-    this._data.push(this._json.encode(record));
+  pushLiteral: function Coll_pushLiteral(object) {
+    this._data.push(this._json.encode(object));
   },
 
   clearRecords: function Coll_clearRecords() {
     this._data = [];
   }
 };
 
 // FIXME: iterator should return WBOs / CryptoWrappers / Keys ?