Bug 1304865 - Replace remaining uses of _itemSource with itemSource in sync and tps. r=markh
authorThom Chiovoloni <tchiovoloni@mozilla.com>
Thu, 22 Sep 2016 16:31:08 -0400
changeset 315136 a18668c1ff8da7e0b6b6945a4186448762064d7c
parent 315135 d2bacbda0dcdac4dead98f4209901bdbf56aa4e7
child 315137 5a9ce5f4d4d6b16aba8456635f664c2f87574e86
push id32563
push userihsiao@mozilla.com
push dateMon, 26 Sep 2016 11:18:33 +0000
treeherderautoland@eb840c87b5fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh
bugs1304865
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
@@ -607,17 +607,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();