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

Unified Diff: third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp

Issue 2668903003: Replace WTF::emptyString{16Bit}() with a static global (Closed)
Patch Set: Replace WTF::emptyString{16Bit}() with a static global Created 3 years, 11 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/modules/websockets/DocumentWebSocketChannel.cpp
diff --git a/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp b/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp
index a06f14070bc39a7dbd316781550ee876e82e72c2..2e9effb279e86e68e638c42581dd6ae3b2d6f1de 100644
--- a/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp
+++ b/third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp
@@ -560,7 +560,7 @@ void DocumentWebSocketChannel::didReceiveData(WebSocketHandle* handle,
frame.payloadLength);
if (m_receivingMessageTypeIsText) {
String message = m_receivingMessageData.isEmpty()
- ? emptyString()
+ ? emptyString
: String::fromUTF8(m_receivingMessageData.data(),
m_receivingMessageData.size());
m_receivingMessageData.clear();

Powered by Google App Engine
This is Rietveld 408576698