blob: 9f1d773405838e73939c7e7fffa76a271132e656 [file] [log] [blame]
Elly Fong-Jones5e367892012-09-18 13:07:09 -04001// Copyright (c) 2012 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
Bertrand SIMONNETb54b6dc2014-07-02 12:13:56 -07005#include "chromeos/process_information.h"
Elly Fong-Jones5e367892012-09-18 13:07:09 -04006
7namespace chromeos {
8
Alex Vakulenko05d29042015-01-13 09:39:25 -08009ProcessInformation::ProcessInformation() : cmd_line_(), process_id_(-1) {
10}
11ProcessInformation::~ProcessInformation() {
12}
Elly Fong-Jones5e367892012-09-18 13:07:09 -040013
14std::string ProcessInformation::GetCommandLine() {
15 std::string result;
16 for (std::vector<std::string>::iterator cmd_itr = cmd_line_.begin();
17 cmd_itr != cmd_line_.end();
18 cmd_itr++) {
19 if (result.length()) {
20 result.append(" ");
21 }
22 result.append((*cmd_itr));
23 }
24 return result;
25}
26
27} // namespace chromeos