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

Unified Diff: third_party/WebKit/Source/wtf/text/WTFString.cpp

Issue 2125003002: Move CrossThreadCopier from platform/ to wtf/ Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_RemoveTupleInBind
Patch Set: Rebase Created 4 years, 5 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
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 77838b29dbf436d53bb9518f68321acb9e6a0b4d..31557fcb0792abafbbc8f98c87ed95fa60ae350e 100644
--- a/third_party/WebKit/Source/wtf/text/WTFString.cpp
+++ b/third_party/WebKit/Source/wtf/text/WTFString.cpp
@@ -975,6 +975,11 @@ std::ostream& operator<<(std::ostream& out, const String& string)
return out << '"';
}
+CrossThreadCopier<String>::Type CrossThreadCopier<String>::copy(const String& str)
+{
+ return str.isolatedCopy();
+}
+
} // namespace WTF
#ifndef NDEBUG

Powered by Google App Engine
This is Rietveld 408576698