Backed out changeset 24af6caa9bba (bug 1219482) to hopefully fix the intermittent hazard failures CLOSED TREE

This commit is contained in:
Wes Kocher
2016-01-29 10:15:30 -08:00
parent f6e15daef9
commit 3c9e45e1fb
10 changed files with 33 additions and 12 deletions

View File

@@ -13,7 +13,7 @@
#include "nsUrlClassifierUtils.h"
// NSPR_LOG_MODULES=UrlClassifierProtocolParser:5
mozilla::LazyLogModule gUrlClassifierProtocolParserLog("UrlClassifierProtocolParser");
PRLogModuleInfo *gUrlClassifierProtocolParserLog = nullptr;
#define PARSER_LOG(args) MOZ_LOG(gUrlClassifierProtocolParserLog, mozilla::LogLevel::Debug, args)
namespace mozilla {
@@ -77,6 +77,10 @@ ProtocolParser::~ProtocolParser()
nsresult
ProtocolParser::Init(nsICryptoHash* aHasher)
{
if (!gUrlClassifierProtocolParserLog) {
gUrlClassifierProtocolParserLog =
PR_NewLogModule("UrlClassifierProtocolParser");
}
mCryptoHash = aHasher;
return NS_OK;
}