Skip to content

Commit

Permalink
Bug 1402519 - Remove MOZ_CRASHREPORTER directives from storage; r=mak
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: HYpSWoJaEAm

--HG--
extra : rebase_source : f8da906d5c9351cd6086ba697547dea68a3ad09e
  • Loading branch information
gabrielesvelto committed Oct 20, 2017
1 parent 4505ab0 commit cc490a2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions storage/mozStorageService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "nsAutoPtr.h"
#include "nsCollationCID.h"
#include "nsEmbedCID.h"
#include "nsExceptionHandler.h"
#include "nsThreadUtils.h"
#include "mozStoragePrivateHelpers.h"
#include "nsIXPConnect.h"
Expand All @@ -26,10 +27,6 @@
#include "sqlite3.h"
#include "mozilla/AutoSQLiteLifetime.h"

#ifdef MOZ_CRASHREPORTER
#include "nsExceptionHandler.h"
#endif

#ifdef XP_WIN
// "windows.h" was included and it can #define lots of things we care about...
#undef CompareString
Expand Down Expand Up @@ -801,13 +798,11 @@ Service::Observe(nsISupports *, const char *aTopic, const char16_t *)
getConnections(connections);
for (uint32_t i = 0, n = connections.Length(); i < n; i++) {
if (!connections[i]->isClosed()) {
#ifdef MOZ_CRASHREPORTER
// getFilename is only the leaf name for the database file,
// so it shouldn't contain privacy-sensitive information.
CrashReporter::AnnotateCrashReport(
NS_LITERAL_CSTRING("StorageConnectionNotClosed"),
connections[i]->getFilename());
#endif
#ifdef DEBUG
printf_stderr("Storage connection not closed: %s",
connections[i]->getFilename().get());
Expand Down

0 comments on commit cc490a2

Please sign in to comment.