Bug 1220654 updating for review draft
authorAndrew Krawchyk <akrawchyk@gmail.com>
Mon, 14 Dec 2015 10:10:58 -0500
changeset 315277 59899283bcde1275014518f868d211d741504a34
parent 315276 8015a41c41062a64601f36f2f4fbb1eda33cd7ec
child 511990 f54478fa490a4c64da534a408abebe490c5ae30b
push id8359
push userakrawchyk@gmail.com
push dateMon, 14 Dec 2015 15:13:47 +0000
bugs1220654
milestone45.0a1
Bug 1220654 updating for review
services/sync/tps/extensions/tps/resource/modules/history.jsm
--- a/services/sync/tps/extensions/tps/resource/modules/history.jsm
+++ b/services/sync/tps/extensions/tps/resource/modules/history.jsm
@@ -185,23 +185,23 @@ var HistoryEntry = {
       let uri = Services.io.newURI(item.uri, null, null);
       PlacesUtils.history.removePage(uri);
     }
     else if ("host" in item) {
       PlacesUtils.history.removePagesFromHost(item.host, false);
     }
     else if ("begin" in item && "end" in item) {
       let cb = Async.makeSpinningCallback();
-      let msSinceEpoch = parseInt(usSinceEpoch /1000);
+      let msSinceEpoch = parseInt(usSinceEpoch / 1000);
       let filter = {
         beginDate: new Date(msSinceEpoch + (item.begin * 60 * 60 * 1000)),
         endDate: new Date(msSinceEpoch + (item.end * 60 * 60 * 1000))
       };
       PlacesUtils.history.removeVisitsByFilter(filter)
-      .catch(ex => Logger.AssertTrue(false, "An error occurred while deleting history: " + ex);)
-      .then(result => {cb(null, result)}, err => {cb(err)});
+                 .catch(ex => Logger.AssertTrue(false, "An error occurred while deleting history: " + ex))
+                 .then(result => { cb(null, result) }, err => { cb(err) });
       Async.waitForSyncCallback(cb);
     }
     else {
       Logger.AssertTrue(false, "invalid entry in delete history");
     }
   },
 };