Bug 1322459 part 3 - Remove duplicate mRefCnt in LSPAnnotationGatherer. r?ehsan
MozReview-Commit-ID: 8XFO6LyyGus
--- a/widget/windows/LSPAnnotator.cpp
+++ b/widget/windows/LSPAnnotator.cpp
@@ -29,26 +29,23 @@
namespace mozilla {
namespace crashreporter {
class LSPAnnotationGatherer : public Runnable
{
~LSPAnnotationGatherer() {}
public:
- NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSIRUNNABLE
void Annotate();
nsCString mString;
nsCOMPtr<nsIThread> mThread;
};
-NS_IMPL_ISUPPORTS(LSPAnnotationGatherer, nsIRunnable)
-
void
LSPAnnotationGatherer::Annotate()
{
nsCOMPtr<nsICrashReporter> cr =
do_GetService("@mozilla.org/toolkit/crash-reporter;1");
bool enabled;
if (cr && NS_SUCCEEDED(cr->GetEnabled(&enabled)) && enabled) {
cr->AnnotateCrashReport(NS_LITERAL_CSTRING("Winsock_LSP"), mString);