Kevin Sawicki 8 years ago
parent
commit
43ef4faf79

+ 4 - 4
atom/app/node_main.cc

@@ -62,10 +62,10 @@ int NodeMain(int argc, char *argv[]) {
 #endif
     process.SetMethod("crash", &AtomBindings::Crash);
 
-    auto crashReporter = mate::Dictionary::CreateEmpty(gin_env.isolate());
-    crashReporter.SetMethod("start",
-                            &crash_reporter::CrashReporter::StartInstance);
-    process.Set("crashReporter", crashReporter);
+    // Setup process.crashReporter.start in child node processes
+    auto reporter = mate::Dictionary::CreateEmpty(gin_env.isolate());
+    reporter.SetMethod("start", &crash_reporter::CrashReporter::StartInstance);
+    process.Set("crashReporter", reporter);
 
     node::LoadEnvironment(env);
 

+ 0 - 1
atom/common/crash_reporter/crash_reporter.cc

@@ -116,5 +116,4 @@ void CrashReporter::StartInstance(const mate::Dictionary& options) {
                   false, extra_parameters);
 }
 
-
 }  // namespace crash_reporter

+ 1 - 0
atom/common/crash_reporter/crash_reporter.h

@@ -31,6 +31,7 @@ class CrashReporter {
              bool upload_to_server,
              bool skip_system_crash_handler,
              const StringMap& extra_parameters);
+
   virtual std::vector<CrashReporter::UploadReportResult> GetUploadedReports(
       const base::FilePath& crashes_dir);