2013-07-04 07:54:34 +00:00
|
|
|
// 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"
|
2013-07-04 07:54:34 +00:00
|
|
|
|
|
|
|
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) {
|
2013-07-04 07:54:34 +00:00
|
|
|
}
|
|
|
|
|
2013-11-14 10:02:15 +00:00
|
|
|
void CrashReporterWin::SetUploadParameters() {
|
|
|
|
upload_parameters_["platform"] = "win32";
|
|
|
|
}
|
|
|
|
|
2013-07-04 07:54:34 +00:00
|
|
|
// static
|
2013-11-14 05:42:28 +00:00
|
|
|
CrashReporterWin* CrashReporterWin::GetInstance() {
|
|
|
|
return Singleton<CrashReporterWin>::get();
|
2013-07-04 07:54:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// static
|
2013-11-14 05:42:28 +00:00
|
|
|
CrashReporter* CrashReporter::GetInstance() {
|
|
|
|
return CrashReporterWin::GetInstance();
|
2013-07-04 07:54:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace crash_reporter
|