Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: chrome/browser/chromeos/system/name_value_pairs_parser.cc

Issue 10191019: [cros] Fix udevadm command line for camera presence detection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add argv version of GetAppOutput. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/system/name_value_pairs_parser.cc
diff --git a/chrome/browser/chromeos/system/name_value_pairs_parser.cc b/chrome/browser/chromeos/system/name_value_pairs_parser.cc
index f4d64c189e5502192589dc3252a685d67c43da20..88f1d4846be68d05ec464f8cb734ce017440b9f1 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;
}
« no previous file with comments | « chrome/browser/chromeos/login/camera_detector.cc ('k') | chrome/browser/chromeos/system/udev_info_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698