Bug 1278439 (part 3) - Adding a missing prefs service null check in dom/flyweb/. r=djvj.
authorNicholas Nethercote <nnethercote@mozilla.com>
Fri, 15 Jul 2016 13:12:57 +1000
changeset 330389 3e207bf6785484173d3131504417cb78c706f738
parent 330388 f1350824e2ce8d97dcd0cdbb444228562797ad75
child 330390 994235fda74bd1d05003546f98d23e46f6ceecef
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdjvj
bugs1278439
milestone50.0a1
Bug 1278439 (part 3) - Adding a missing prefs service null check in dom/flyweb/. r=djvj.
dom/flyweb/HttpServer.cpp
--- a/dom/flyweb/HttpServer.cpp
+++ b/dom/flyweb/HttpServer.cpp
@@ -46,19 +46,16 @@ HttpServer::~HttpServer()
 
 void
 HttpServer::Init(int32_t aPort, bool aHttps, HttpServerListener* aListener)
 {
   mPort = aPort;
   mHttps = aHttps;
   mListener = aListener;
 
-  nsCOMPtr<nsIPrefBranch> prefService;
-  prefService = do_GetService(NS_PREFSERVICE_CONTRACTID);
-
   if (mHttps) {
     nsCOMPtr<nsILocalCertService> lcs =
       do_CreateInstance("@mozilla.org/security/local-cert-service;1");
     nsresult rv = lcs->GetOrCreateCert(NS_LITERAL_CSTRING("flyweb"), this,
                                        nsILocalCertService::KEY_TYPE_EC);
     if (NS_FAILED(rv)) {
       NotifyStarted(rv);
     }