electron/common/crash_reporter/crash_reporter_win.cc

39 lines
1.1 KiB
C++
Raw Normal View History

// Copyright (c) 2013 GitHub, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
2013-11-14 05:42:28 +00:00
#include "common/crash_reporter/crash_reporter_win.h"
#include "base/memory/singleton.h"
namespace crash_reporter {
2013-11-14 05:42:28 +00:00
CrashReporterWin::CrashReporterWin()
: breakpad_(NULL) {
}
CrashReporterWin::~CrashReporterWin() {
if (breakpad_ != NULL)
BreakpadRelease(breakpad_);
}
void CrashReporterWin::InitBreakpad(const std::string& product_name,
const std::string& version,
const std::string& company_name,
const std::string& submit_url,
bool auto_submit,
bool skip_system_crash_handler) {
}
// static
2013-11-14 05:42:28 +00:00
CrashReporterWin* CrashReporterWin::GetInstance() {
return Singleton<CrashReporterWin>::get();
}
// static
2013-11-14 05:42:28 +00:00
CrashReporter* CrashReporter::GetInstance() {
return CrashReporterWin::GetInstance();
}
} // namespace crash_reporter