Home | History | Annotate | Download | only in brillo
      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 
      5 #include "brillo/process_information.h"
      6 
      7 namespace brillo {
      8 
      9 ProcessInformation::ProcessInformation() : cmd_line_(), process_id_(-1) {
     10 }
     11 ProcessInformation::~ProcessInformation() {
     12 }
     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 brillo
     28