blob: a4391f1ffad48d5a36cc66d754489e1f9477a71a [file] [log] [blame]
Mike Frysingerc0871522013-09-16 14:07:27 -04001// 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
9namespace debugd {
10
11CrashSenderTool::CrashSenderTool() { }
12
13CrashSenderTool::~CrashSenderTool() { }
14
15void 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