Fix issues and deprecate the old prop
This commit is contained in:
parent
0b9530efd7
commit
0d1804b2a0
2 changed files with 6 additions and 2 deletions
|
@ -33,6 +33,8 @@ class CrashReporter {
|
||||||
virtual std::vector<CrashReporter::UploadReportResult> GetUploadedReports(
|
virtual std::vector<CrashReporter::UploadReportResult> GetUploadedReports(
|
||||||
const base::FilePath& crashes_dir);
|
const base::FilePath& crashes_dir);
|
||||||
|
|
||||||
|
virtual void SetShouldUpload();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
CrashReporter();
|
CrashReporter();
|
||||||
virtual ~CrashReporter();
|
virtual ~CrashReporter();
|
||||||
|
@ -46,8 +48,6 @@ class CrashReporter {
|
||||||
bool skip_system_crash_handler);
|
bool skip_system_crash_handler);
|
||||||
virtual void SetUploadParameters();
|
virtual void SetUploadParameters();
|
||||||
|
|
||||||
virtual void SetShouldUpload();
|
|
||||||
|
|
||||||
StringMap upload_parameters_;
|
StringMap upload_parameters_;
|
||||||
bool is_browser_;
|
bool is_browser_;
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,10 @@ class CrashReporter {
|
||||||
if (autoSubmit == null && shouldUpload == null) {
|
if (autoSubmit == null && shouldUpload == null) {
|
||||||
shouldUpload = true
|
shouldUpload = true
|
||||||
} else {
|
} 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.')
|
||||||
|
}
|
||||||
shouldUpload = shouldUpload || autoSubmit
|
shouldUpload = shouldUpload || autoSubmit
|
||||||
}
|
}
|
||||||
if (ignoreSystemCrashHandler == null) {
|
if (ignoreSystemCrashHandler == null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue