summaryrefslogtreecommitdiffstats
path: root/chromeos/system
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2014-09-09 18:47:06 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-10 01:56:05 +0000
commitb44bd35d96e7367529c6053b68226d10fd9e9dc2 (patch)
treef8b20231ade6da200e2b4d1ef468944bd2691502 /chromeos/system
parent4dd3ef06036b5b7bfc430ee4a5013856cfe8d872 (diff)
downloadchromium_src-b44bd35d96e7367529c6053b68226d10fd9e9dc2.zip
chromium_src-b44bd35d96e7367529c6053b68226d10fd9e9dc2.tar.gz
chromium_src-b44bd35d96e7367529c6053b68226d10fd9e9dc2.tar.bz2
Cleanup: Use base/files/file_util.h instead of base/file_util.h in ash/, athena/, and chromeos/
TBR=pneubeck@chromium.org Review URL: https://codereview.chromium.org/555313002 Cr-Commit-Position: refs/heads/master@{#294072}
Diffstat (limited to 'chromeos/system')
-rw-r--r--chromeos/system/name_value_pairs_parser.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chromeos/system/name_value_pairs_parser.cc b/chromeos/system/name_value_pairs_parser.cc
index 0c779eb..bd565f7 100644
--- a/chromeos/system/name_value_pairs_parser.cc
+++ b/chromeos/system/name_value_pairs_parser.cc
@@ -5,8 +5,8 @@
#include "chromeos/system/name_value_pairs_parser.h"
#include "base/command_line.h"
-#include "base/file_util.h"
#include "base/files/file_path.h"
+#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/process/launch.h"
#include "base/stl_util.h"
@@ -19,7 +19,7 @@ namespace system {
namespace {
-bool GetToolOutput(int argc, const char* argv[], std::string& output) {
+bool GetToolOutput(int argc, const char* argv[], std::string* output) {
DCHECK_GE(argc, 1);
if (!base::PathExists(base::FilePath(argv[0]))) {
@@ -30,7 +30,7 @@ bool GetToolOutput(int argc, const char* argv[], std::string& output) {
std::vector<std::string> args;
for (int argn = 0; argn < argc; ++argn)
args.push_back(argv[argn]);
- if (!base::GetAppOutput(args, &output)) {
+ if (!base::GetAppOutput(args, output)) {
LOG(WARNING) << "Error executing " << argv[0];
return false;
}
@@ -109,7 +109,7 @@ bool NameValuePairsParser::GetSingleValueFromTool(int argc,
const char* argv[],
const std::string& key) {
std::string output_string;
- if (!GetToolOutput(argc, argv, output_string))
+ if (!GetToolOutput(argc, argv, &output_string))
return false;
base::TrimWhitespaceASCII(output_string, base::TRIM_ALL, &output_string);
@@ -138,7 +138,7 @@ bool NameValuePairsParser::ParseNameValuePairsFromTool(
const std::string& delim,
const std::string& comment_delim) {
std::string output_string;
- if (!GetToolOutput(argc, argv, output_string))
+ if (!GetToolOutput(argc, argv, &output_string))
return false;
return ParseNameValuePairsWithComments(