Index: tools/gn/command_clean.cc |
diff --git a/tools/gn/command_clean.cc b/tools/gn/command_clean.cc |
index cef3526288ec03cd1df87b076bac67bf30da9a16..d14b22d84a39e7f3949c097c180f03bc9bade75e 100644 |
--- a/tools/gn/command_clean.cc |
+++ b/tools/gn/command_clean.cc |
@@ -25,8 +25,8 @@ std::string ExtractGNBuildCommands(const base::FilePath& build_ninja_file) { |
return std::string(); |
} |
- std::vector<std::string> lines; |
- base::SplitStringDontTrim(file_contents, '\n', &lines); |
+ std::vector<std::string> lines = base::SplitString( |
+ file_contents, "\n", base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL); |
std::string result; |
int num_blank_lines = 0; |