File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const {spawn} = require('child_process')
4
4
const os = require ( 'os' )
5
5
const path = require ( 'path' )
6
6
const electron = require ( 'electron' )
7
- const { app} = process . type === 'browser' ? electron : electron . remote
7
+ const { app, deprecate } = process . type === 'browser' ? electron : electron . remote
8
8
const binding = process . atomBinding ( 'crash_reporter' )
9
9
10
10
class CrashReporter {
@@ -106,14 +106,10 @@ class CrashReporter {
106
106
107
107
// TODO(2.0) Remove
108
108
setExtraParameter ( key , value ) {
109
- // TODO(alexeykuzmin): Warning disabled since it caused
110
- // a couple of Crash Reported tests to time out on Mac. Add it back.
111
- // https://github.com/electron/electron/issues/11012
112
-
113
- // if (!process.noDeprecations) {
114
- // deprecate.warn('crashReporter.setExtraParameter',
115
- // 'crashReporter.addExtraParameter or crashReporter.removeExtraParameter')
116
- // }
109
+ if ( ! process . noDeprecations ) {
110
+ deprecate . warn ( 'crashReporter.setExtraParameter' ,
111
+ 'crashReporter.addExtraParameter or crashReporter.removeExtraParameter' )
112
+ }
117
113
binding . setExtraParameter ( key , value )
118
114
}
119
115
You can’t perform that action at this time.
0 commit comments