Elly Fong-Jones | 5e36789 | 2012-09-18 13:07:09 -0400 | [diff] [blame] | 1 | // 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 SIMONNET | b54b6dc | 2014-07-02 12:13:56 -0700 | [diff] [blame] | 5 | #include "chromeos/process_information.h" |
Elly Fong-Jones | 5e36789 | 2012-09-18 13:07:09 -0400 | [diff] [blame] | 6 | |
| 7 | namespace chromeos { |
| 8 | |
Alex Vakulenko | 05d2904 | 2015-01-13 09:39:25 -0800 | [diff] [blame] | 9 | ProcessInformation::ProcessInformation() : cmd_line_(), process_id_(-1) { |
| 10 | } |
| 11 | ProcessInformation::~ProcessInformation() { |
| 12 | } |
Elly Fong-Jones | 5e36789 | 2012-09-18 13:07:09 -0400 | [diff] [blame] | 13 | |
| 14 | std::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 |