Index: base/process/process_metrics_linux.cc |
diff --git a/base/process/process_metrics_linux.cc b/base/process/process_metrics_linux.cc |
index b282ff0a57a38300ded3b3c8be813ad25a2d2f22..47a79e51e5eb1c92e4b9bdd0cf0244eeb8fc9753 100644 |
--- a/base/process/process_metrics_linux.cc |
+++ b/base/process/process_metrics_linux.cc |
@@ -67,8 +67,8 @@ |
const std::string& key = pairs[i].first; |
const std::string& value_str = pairs[i].second; |
if (key == field) { |
- std::vector<StringPiece> split_value_str = SplitStringPiece( |
- value_str, " ", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
+ std::vector<std::string> split_value_str; |
+ SplitString(value_str, ' ', &split_value_str); |
if (split_value_str.size() != 2 || split_value_str[1] != "kB") { |
NOTREACHED(); |
return 0; |
@@ -368,8 +368,8 @@ |
return false; |
} |
- std::vector<StringPiece> statm_vec = SplitStringPiece( |
- statm, " ", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
+ std::vector<std::string> statm_vec; |
+ SplitString(statm, ' ', &statm_vec); |
if (statm_vec.size() != 7) |
return false; // Not the format we expect. |