mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Bug 822018 - Remove unused mentions of private browsing from TPS. r=tcsc
MozReview-Commit-ID: 2QKfN062gRE --HG-- extra : rebase_source : aa460d5fb0f41f5c9449ee4fb539abeb2cd6ed63
This commit is contained in:
parent
70be31f665
commit
57c2fdd5f5
@ -71,7 +71,6 @@ const SYNC_WIPE_REMOTE = "wipeRemote";
|
|||||||
const ACTION_ADD = "add";
|
const ACTION_ADD = "add";
|
||||||
const ACTION_DELETE = "delete";
|
const ACTION_DELETE = "delete";
|
||||||
const ACTION_MODIFY = "modify";
|
const ACTION_MODIFY = "modify";
|
||||||
const ACTION_PRIVATE_BROWSING = "private-browsing";
|
|
||||||
const ACTION_SET_ENABLED = "set-enabled";
|
const ACTION_SET_ENABLED = "set-enabled";
|
||||||
const ACTION_SYNC = "sync";
|
const ACTION_SYNC = "sync";
|
||||||
const ACTION_SYNC_RESET_CLIENT = SYNC_RESET_CLIENT;
|
const ACTION_SYNC_RESET_CLIENT = SYNC_RESET_CLIENT;
|
||||||
@ -84,7 +83,6 @@ const ACTIONS = [
|
|||||||
ACTION_ADD,
|
ACTION_ADD,
|
||||||
ACTION_DELETE,
|
ACTION_DELETE,
|
||||||
ACTION_MODIFY,
|
ACTION_MODIFY,
|
||||||
ACTION_PRIVATE_BROWSING,
|
|
||||||
ACTION_SET_ENABLED,
|
ACTION_SET_ENABLED,
|
||||||
ACTION_SYNC,
|
ACTION_SYNC,
|
||||||
ACTION_SYNC_RESET_CLIENT,
|
ACTION_SYNC_RESET_CLIENT,
|
||||||
@ -96,7 +94,6 @@ const ACTIONS = [
|
|||||||
|
|
||||||
const OBSERVER_TOPICS = ["fxaccounts:onlogin",
|
const OBSERVER_TOPICS = ["fxaccounts:onlogin",
|
||||||
"fxaccounts:onlogout",
|
"fxaccounts:onlogout",
|
||||||
"private-browsing",
|
|
||||||
"profile-before-change",
|
"profile-before-change",
|
||||||
"sessionstore-windows-restored",
|
"sessionstore-windows-restored",
|
||||||
"weave:service:tracking-started",
|
"weave:service:tracking-started",
|
||||||
@ -171,10 +168,6 @@ var TPS = {
|
|||||||
Logger.logInfo("----------event observed: " + topic);
|
Logger.logInfo("----------event observed: " + topic);
|
||||||
|
|
||||||
switch (topic) {
|
switch (topic) {
|
||||||
case "private-browsing":
|
|
||||||
Logger.logInfo("private browsing " + data);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case "profile-before-change":
|
case "profile-before-change":
|
||||||
OBSERVER_TOPICS.forEach(function(topic) {
|
OBSERVER_TOPICS.forEach(function(topic) {
|
||||||
Services.obs.removeObserver(this, topic);
|
Services.obs.removeObserver(this, topic);
|
||||||
|
Loading…
Reference in New Issue
Block a user