Index: src/log-utils.cc |
diff --git a/src/log-utils.cc b/src/log-utils.cc |
index f033172734a6c643b09c3fa33098f98ddf25c67f..a733b523eac4fba3b2b3c9194e1b9d6eaa5a13b4 100644 |
--- a/src/log-utils.cc |
+++ b/src/log-utils.cc |
@@ -237,6 +237,18 @@ void LogMessageBuilder::Append(const char c) { |
} |
+void LogMessageBuilder::AppendDoubleQuotedString(const char* string) { |
+ Append('"'); |
+ for (const char* p = string; *p != '\0'; p++) { |
+ if (*p == '"') { |
+ Append('\\'); |
+ } |
+ Append(*p); |
+ } |
+ Append('"'); |
+} |
+ |
+ |
void LogMessageBuilder::Append(String* str) { |
DisallowHeapAllocation no_gc; // Ensure string stay valid. |
int length = str->length(); |