diff options
author | ivankr@chromium.org <ivankr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-26 20:24:37 +0000 |
---|---|---|
committer | ivankr@chromium.org <ivankr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-26 20:24:37 +0000 |
commit | 1a6ec69e0f8d90bfc4a6662e58f11fcfa628fc4c (patch) | |
tree | 28fa112b3e1b5336131e280f60f9e20167d35a4f /chrome/browser/chromeos/system/name_value_pairs_parser.cc | |
parent | a401394b0ae7fe755b00c12d1145b49a1056cf0e (diff) | |
download | chromium_src-1a6ec69e0f8d90bfc4a6662e58f11fcfa628fc4c.zip chromium_src-1a6ec69e0f8d90bfc4a6662e58f11fcfa628fc4c.tar.gz chromium_src-1a6ec69e0f8d90bfc4a6662e58f11fcfa628fc4c.tar.bz2 |
[cros] Fix udevadm command line for camera presence detection.
Also added an overload of GetAppOutput which takes argv directly instead of CommandLine for launching programs where specific order of argument matters (like udevadm).
BUG=124845
TEST=Manual
Review URL: http://codereview.chromium.org/10191019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134149 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/system/name_value_pairs_parser.cc')
-rw-r--r-- | chrome/browser/chromeos/system/name_value_pairs_parser.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/system/name_value_pairs_parser.cc b/chrome/browser/chromeos/system/name_value_pairs_parser.cc index f4d64c1..88f1d48 100644 --- a/chrome/browser/chromeos/system/name_value_pairs_parser.cc +++ b/chrome/browser/chromeos/system/name_value_pairs_parser.cc @@ -29,9 +29,11 @@ bool GetToolOutput(int argc, const char* argv[], std::string& output) { return false; } - CommandLine command_line(argc, argv); - if (!base::GetAppOutput(command_line, &output)) { - LOG(WARNING) << "Error executing: " << command_line.GetCommandLineString(); + std::vector<std::string> args; + for (int argn = 0; argn < argc; ++argn) + args.push_back(argv[argn]); + if (!base::GetAppOutput(args, &output)) { + LOG(WARNING) << "Error executing " << argv[0]; return false; } |