blob: 3fcb4d7bd345dd819cd941163a554b74d87ce63b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "process_information.h"
namespace chromeos {
ProcessInformation::ProcessInformation()
: cmd_line_(), process_id_(-1) { }
ProcessInformation::~ProcessInformation() { }
std::string ProcessInformation::GetCommandLine() {
std::string result;
for (std::vector<std::string>::iterator cmd_itr = cmd_line_.begin();
cmd_itr != cmd_line_.end();
cmd_itr++) {
if (result.length()) {
result.append(" ");
}
result.append((*cmd_itr));
}
return result;
}
} // namespace chromeos
|