Chromium Code Reviews| Index: tools/gn/escape.cc |
| diff --git a/tools/gn/escape.cc b/tools/gn/escape.cc |
| index 5f2752346467e8c440878a061a277fb480067b9f..cf119f24b7baae061f4a7a5747dae5d1df0e5757 100644 |
| --- a/tools/gn/escape.cc |
| +++ b/tools/gn/escape.cc |
| @@ -6,7 +6,6 @@ |
| #include <stddef.h> |
| -#include "base/containers/stack_container.h" |
| #include "base/logging.h" |
| #include "build/build_config.h" |
| @@ -202,8 +201,8 @@ std::string EscapeString(const base::StringPiece& str, |
| void EscapeStringToStream(std::ostream& out, |
| const base::StringPiece& str, |
| const EscapeOptions& options) { |
| - base::StackString<256> escaped; |
| - EscapeStringToString(str, options, &escaped.container(), nullptr); |
| - if (!escaped->empty()) |
| - out.write(escaped->data(), escaped->size()); |
| + std::string escaped; |
| + EscapeStringToString(str, options, &escaped, nullptr); |
|
sunnyps
2017/04/14 17:27:54
EscapeStringToString and other methods don't need
|
| + if (!escaped.empty()) |
| + out.write(escaped.data(), escaped.size()); |
| } |