Bug 822018 - Remove unused mentions of private browsing from TPS. r?tcsc draft
authorKit Cambridge <kit@yakshaving.ninja>
Tue, 01 May 2018 13:34:17 -0700
changeset 790277 a6ac95ec8ca083c7ddf7c5bcfabbd55cf18230a9
parent 790006 7ef8450810693ab08e79ab0d4702de6f479e678c
push id108475
push userbmo:kit@mozilla.com
push dateTue, 01 May 2018 20:38:52 +0000
reviewerstcsc
bugs822018
milestone61.0a1
Bug 822018 - Remove unused mentions of private browsing from TPS. r?tcsc MozReview-Commit-ID: 2QKfN062gRE
services/sync/tps/extensions/tps/resource/tps.jsm
--- a/services/sync/tps/extensions/tps/resource/tps.jsm
+++ b/services/sync/tps/extensions/tps/resource/tps.jsm
@@ -66,42 +66,39 @@ ChromeUtils.defineModuleGetter(this, "Ne
 const SYNC_RESET_CLIENT = "resetClient";
 const SYNC_WIPE_CLIENT  = "wipeClient";
 const SYNC_WIPE_REMOTE  = "wipeRemote";
 
 // Actions a test can perform
 const ACTION_ADD                = "add";
 const ACTION_DELETE             = "delete";
 const ACTION_MODIFY             = "modify";
-const ACTION_PRIVATE_BROWSING   = "private-browsing";
 const ACTION_SET_ENABLED        = "set-enabled";
 const ACTION_SYNC               = "sync";
 const ACTION_SYNC_RESET_CLIENT  = SYNC_RESET_CLIENT;
 const ACTION_SYNC_WIPE_CLIENT   = SYNC_WIPE_CLIENT;
 const ACTION_SYNC_WIPE_REMOTE   = SYNC_WIPE_REMOTE;
 const ACTION_VERIFY             = "verify";
 const ACTION_VERIFY_NOT         = "verify-not";
 
 const ACTIONS = [
   ACTION_ADD,
   ACTION_DELETE,
   ACTION_MODIFY,
-  ACTION_PRIVATE_BROWSING,
   ACTION_SET_ENABLED,
   ACTION_SYNC,
   ACTION_SYNC_RESET_CLIENT,
   ACTION_SYNC_WIPE_CLIENT,
   ACTION_SYNC_WIPE_REMOTE,
   ACTION_VERIFY,
   ACTION_VERIFY_NOT,
 ];
 
 const OBSERVER_TOPICS = ["fxaccounts:onlogin",
                          "fxaccounts:onlogout",
-                         "private-browsing",
                          "profile-before-change",
                          "sessionstore-windows-restored",
                          "weave:service:tracking-started",
                          "weave:service:tracking-stopped",
                          "weave:service:login:error",
                          "weave:service:setup-complete",
                          "weave:service:sync:finish",
                          "weave:service:sync:delayed",
@@ -166,20 +163,16 @@ var TPS = {
   QueryInterface: ChromeUtils.generateQI([Ci.nsIObserver,
                                           Ci.nsISupportsWeakReference]),
 
   observe: function TPS__observe(subject, topic, data) {
     try {
       Logger.logInfo("----------event observed: " + topic);
 
       switch (topic) {
-        case "private-browsing":
-          Logger.logInfo("private browsing " + data);
-          break;
-
         case "profile-before-change":
           OBSERVER_TOPICS.forEach(function(topic) {
             Services.obs.removeObserver(this, topic);
           }, this);
 
           Logger.close();
 
           break;