Bug 822018 - Remove unused mentions of private browsing from TPS. r=tcsc
authorKit Cambridge <kit@yakshaving.ninja>
Tue, 01 May 2018 13:34:17 -0700
changeset 472548 fa4f44996ac6a77963450d25e5ea66fc6d39c701
parent 472547 eb78f49f99f095346715906321a5730bf647dfec
child 472549 c91dda92242abf7f072485bb97bc7a0f05df500a
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstcsc
bugs822018
milestone61.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 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;