Bug 861767 - Add protocolInfo attribute to imIncomingServer.js. r=florian
authoraceman <acelists@atlas.sk>
Wed, 29 May 2013 18:52:08 -0400
changeset 15684 4a0ad377d047a01eea96974faf90a71230c4143f
parent 15683 bffe2188e9e02fc123a251c391175134054aa8c2
child 15685 b63bf044ddcc2681330da391edcf68c5a44fa2d8
push id942
push userbugzilla@standard8.plus.com
push dateMon, 05 Aug 2013 19:15:38 +0000
treeherdercomm-beta@0e1a1c4a9f0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian
bugs861767
Bug 861767 - Add protocolInfo attribute to imIncomingServer.js. r=florian
mail/components/im/imIncomingServer.js
--- a/mail/components/im/imIncomingServer.js
+++ b/mail/components/im/imIncomingServer.js
@@ -246,15 +246,20 @@ imIncomingServer.prototype = {
       getNumUnread: function(aDeep) 0,
       Shutdown: function() {},
       QueryInterface: XPCOMUtils.generateQI([Ci.nsIMsgFolder])
     });
   },
 
   get sortOrder() 300000000,
 
+  get protocolInfo() {
+    return Components.classes["@mozilla.org/messenger/protocol/info;1?type=im"]
+                     .getService(Components.interfaces.nsIMsgProtocolInfo);
+  },
+
   classDescription: "IM Msg Incoming Server implementation",
   classID: Components.ID("{9dd7f36b-5960-4f0a-8789-f5f516bd083d}"),
   contractID: "@mozilla.org/messenger/server;1?type=im",
   QueryInterface: XPCOMUtils.generateQI([Ci.nsIMsgIncomingServer])
 };
 
 const NSGetFactory = XPCOMUtils.generateNSGetFactory([imIncomingServer]);