Bug 1304865 - Replace remaining uses of _itemSource with itemSource in sync and tps r?markh draft
authorThom Chiovoloni <tchiovoloni@mozilla.com>
Thu, 22 Sep 2016 16:31:08 -0400
changeset 416680 824c8e18278fc1a09c4db61e73f010e810fed7ce
parent 416616 4e9e56998d5ce06c6088e63006fad1a06c9aef9a
child 531927 a9df16a15c06d02ebaf61695a379a0e909e41ade
push id30222
push userbmo:tchiovoloni@mozilla.com
push dateThu, 22 Sep 2016 20:31:28 +0000
reviewersmarkh
bugs1304865
milestone52.0a1
Bug 1304865 - Replace remaining uses of _itemSource with itemSource in sync and tps r?markh MozReview-Commit-ID: 8FO6vSPAnDZ
services/sync/modules/collection_validator.js
services/sync/tps/extensions/tps/resource/tps.jsm
--- a/services/sync/modules/collection_validator.js
+++ b/services/sync/modules/collection_validator.js
@@ -60,17 +60,17 @@ class CollectionValidator {
   }
 
   // Should a custom ProblemData type be needed, return it here.
   emptyProblemData() {
     return new CollectionProblemData();
   }
 
   getServerItems(engine) {
-    let collection = engine._itemSource();
+    let collection = engine.itemSource();
     let collectionKey = engine.service.collectionKeys.keyForCollection(engine.name);
     collection.full = true;
     let items = [];
     collection.recordHandler = function(item) {
       item.decrypt(collectionKey);
       items.push(item.cleartext);
     };
     collection.get();
--- a/services/sync/tps/extensions/tps/resource/tps.jsm
+++ b/services/sync/tps/extensions/tps/resource/tps.jsm
@@ -599,17 +599,17 @@ var TPS = {
 
   /**
    * Use Sync's bookmark validation code to see if we've corrupted the tree.
    */
   ValidateBookmarks() {
 
     let getServerBookmarkState = () => {
       let bookmarkEngine = Weave.Service.engineManager.get('bookmarks');
-      let collection = bookmarkEngine._itemSource();
+      let collection = bookmarkEngine.itemSource();
       let collectionKey = bookmarkEngine.service.collectionKeys.keyForCollection(bookmarkEngine.name);
       collection.full = true;
       let items = [];
       collection.recordHandler = function(item) {
         item.decrypt(collectionKey);
         items.push(item.cleartext);
       };
       collection.get();