Mike Frysinger | c087152 | 2013-09-16 14:07:27 -0400 | [diff] [blame] | 1 | // Copyright (c) 2013 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "crash_sender_tool.h" |
| 6 | |
| 7 | #include "process_with_id.h" |
| 8 | |
| 9 | namespace debugd { |
| 10 | |
| 11 | CrashSenderTool::CrashSenderTool() { } |
| 12 | |
| 13 | CrashSenderTool::~CrashSenderTool() { } |
| 14 | |
| 15 | void CrashSenderTool::UploadCrashes(DBus::Error& error) { // NOLINT |
| 16 | ProcessWithId* p = CreateProcess(false); |
| 17 | p->AddArg("/sbin/crash_sender"); |
| 18 | p->AddStringOption("-e", "SECONDS_SEND_SPREAD=1"); |
| 19 | p->Run(); |
| 20 | } |
| 21 | |
| 22 | }; // namespace debugd |