namespace {
-const char kQuoteChars[] = "\"";
-const char kTrimChars[] = "\" ";
-
bool GetToolOutput(int argc, const char* argv[], std::string& output) {
DCHECK_GE(argc, 1);
bool all_valid = true;
// Set up the pair tokenizer.
base::StringTokenizer pair_toks(in_string, delim);
- pair_toks.set_quote_chars(kQuoteChars);
+ pair_toks.set_quote_chars("\"");
// Process token pairs.
while (pair_toks.GetNext()) {
std::string pair(pair_toks.token());
value_size = comment_pos - eq_pos - 1;
}
+ static const char kTrimChars[] = "\" ";
std::string key;
std::string value;
base::TrimString(pair.substr(0, eq_pos), kTrimChars, &key);
return ParseNameValuePairs(contents, eq, delim);
} else {
if (base::SysInfo::IsRunningOnChromeOS())
- LOG(WARNING) << "Unable to read statistics file: " << file_path.value();
+ VLOG(1) << "Statistics file not present: " << file_path.value();
return false;
}
}