Backed out changeset 5bb757ffb7e9 (bug 1553855) for Classifier.cpp assertion failures CLOSED TREE
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#include "mozilla/EndianUtils.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "mozilla/IntegerPrintfMacros.h"
|
||||
#include "mozilla/LazyIdleThread.h"
|
||||
#include "mozilla/Logging.h"
|
||||
#include "mozilla/SyncRunnable.h"
|
||||
#include "mozilla/Base64.h"
|
||||
@@ -42,8 +41,6 @@ extern mozilla::LazyLogModule gUrlClassifierDbServiceLog;
|
||||
|
||||
#define METADATA_SUFFIX NS_LITERAL_CSTRING(".metadata")
|
||||
|
||||
#define DEFAULT_THREAD_TIMEOUT_MS 5000
|
||||
|
||||
namespace mozilla {
|
||||
namespace safebrowsing {
|
||||
|
||||
@@ -131,9 +128,8 @@ Classifier::Classifier()
|
||||
: mIsTableRequestResultOutdated(true),
|
||||
mUpdateInterrupted(true),
|
||||
mIsClosed(false) {
|
||||
// Make a lazy thread for any IO
|
||||
mUpdateThread = new LazyIdleThread(DEFAULT_THREAD_TIMEOUT_MS,
|
||||
NS_LITERAL_CSTRING("Classifier Update"));
|
||||
NS_NewNamedThread(NS_LITERAL_CSTRING("Classifier Update"),
|
||||
getter_AddRefs(mUpdateThread));
|
||||
}
|
||||
|
||||
Classifier::~Classifier() { Close(); }
|
||||
|
||||
Reference in New Issue
Block a user