Index: base/debug/proc_maps_linux.cc |
diff --git a/base/debug/proc_maps_linux.cc b/base/debug/proc_maps_linux.cc |
index 4c1aedf00329757a09d7e5d548e4063a4cb440dd..8c8965b8f1519b0e5c8e3b2bc47c7e510b262d17 100644 |
--- a/base/debug/proc_maps_linux.cc |
+++ b/base/debug/proc_maps_linux.cc |
@@ -96,8 +96,8 @@ bool ParseProcMaps(const std::string& input, |
// This isn't async safe nor terribly efficient, but it doesn't need to be at |
// this point in time. |
- std::vector<std::string> lines; |
- SplitString(input, '\n', &lines); |
+ std::vector<std::string> lines = SplitString( |
+ input, "\n", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
for (size_t i = 0; i < lines.size(); ++i) { |
// Due to splitting on '\n' the last line should be empty. |