Index: third_party/WebKit/Source/wtf/text/WTFString.cpp |
diff --git a/third_party/WebKit/Source/wtf/text/WTFString.cpp b/third_party/WebKit/Source/wtf/text/WTFString.cpp |
index 6fee9d06de8ce8269a1a0d9ad21a820acf6fc3d9..7433d3f5497624fdd140dc7bc202706c144d7b42 100644 |
--- a/third_party/WebKit/Source/wtf/text/WTFString.cpp |
+++ b/third_party/WebKit/Source/wtf/text/WTFString.cpp |
@@ -836,6 +836,11 @@ CString String::utf8(UTF8ConversionMode mode) const |
return CString(bufferVector.data(), buffer - bufferVector.data()); |
} |
+std::string String::toUTF8() const |
+{ |
+ return utf8().toStdString(); |
+} |
+ |
String String::make8BitFrom16BitSource(const UChar* source, size_t length) |
{ |
if (!length) |