Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(816)

Unified Diff: sky/engine/wtf/text/WTFString.cpp

Issue 678683004: HTMLImportLoader should talk directly to mojo::NetworkService (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address reviewer comments Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/wtf/text/WTFString.h ('k') | sky/viewer/platform/platform_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/wtf/text/WTFString.cpp
diff --git a/sky/engine/wtf/text/WTFString.cpp b/sky/engine/wtf/text/WTFString.cpp
index d72969f19a6a82d4f4f9e513510ec2b01ad2749f..e23f7286a6f66ff9dc3003e4fe0c16ef1dc5c902 100644
--- a/sky/engine/wtf/text/WTFString.cpp
+++ b/sky/engine/wtf/text/WTFString.cpp
@@ -871,6 +871,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)
« no previous file with comments | « sky/engine/wtf/text/WTFString.h ('k') | sky/viewer/platform/platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698