Fix build issues
This commit is contained in:
parent
0d1804b2a0
commit
5a1a2616aa
3 changed files with 5 additions and 3 deletions
|
@ -33,7 +33,7 @@ class CrashReporter {
|
|||
virtual std::vector<CrashReporter::UploadReportResult> GetUploadedReports(
|
||||
const base::FilePath& crashes_dir);
|
||||
|
||||
virtual void SetShouldUpload();
|
||||
virtual void SetShouldUpload(bool should_upload);
|
||||
|
||||
protected:
|
||||
CrashReporter();
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "atom/common/crash_reporter/crash_reporter.h"
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/strings/string_piece.h"
|
||||
#include "vendor/crashpad/client/crash_report_database.h"
|
||||
#include "vendor/crashpad/client/simple_string_dictionary.h"
|
||||
|
||||
namespace base {
|
||||
|
@ -31,6 +32,7 @@ class CrashReporterMac : public CrashReporter {
|
|||
bool should_upload,
|
||||
bool skip_system_crash_handler) override;
|
||||
void SetUploadParameters() override;
|
||||
void SetShouldUpload(bool should_upload) override;
|
||||
|
||||
private:
|
||||
friend struct base::DefaultSingletonTraits<CrashReporterMac>;
|
||||
|
|
|
@ -20,7 +20,7 @@ class CrashReporter {
|
|||
} else {
|
||||
if (typeof autoSubmit !== 'undefined') {
|
||||
// TODO: Remove depreceated property in 2.0.0
|
||||
console.warn('The "autoSubmit" attribute on electron.crashReporter is depreceated. Please use "shouldUpload" instead.')
|
||||
console.warn('The "autoSubmit" attribute on electron.crashReporter.start is depreceated. Please use "shouldUpload" instead.')
|
||||
}
|
||||
shouldUpload = shouldUpload || autoSubmit
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ class CrashReporter {
|
|||
|
||||
setShouldUpload(shouldUpload) {
|
||||
this._shouldUpload = shouldUpload
|
||||
return bindings._setShouldUpload(shouldUpload)
|
||||
return binding._setShouldUpload(shouldUpload)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue