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

Unified Diff: Source/web/WebSocketImpl.cpp

Issue 639333003: Delete the old WebSocket implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSocketImpl.cpp
diff --git a/Source/web/WebSocketImpl.cpp b/Source/web/WebSocketImpl.cpp
index e4c2b85ff820cddf6fe658679bacf7951b144e11..9099dc95cbbc6c4864bb35e5d3ae22d22b41161e 100644
--- a/Source/web/WebSocketImpl.cpp
+++ b/Source/web/WebSocketImpl.cpp
@@ -33,10 +33,8 @@
#include "core/dom/Document.h"
#include "core/frame/ConsoleTypes.h"
-#include "modules/websockets/MainThreadWebSocketChannel.h"
#include "modules/websockets/NewWebSocketChannelImpl.h"
#include "modules/websockets/WebSocketChannel.h"
-#include "platform/RuntimeEnabledFeatures.h"
#include "public/platform/WebArrayBuffer.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
@@ -57,11 +55,7 @@ WebSocketImpl::WebSocketImpl(const WebDocument& document, WebSocketClient* clien
, m_bufferedAmountAfterClose(0)
{
RefPtrWillBeRawPtr<Document> coreDocument = PassRefPtrWillBeRawPtr<Document>(document);
- if (RuntimeEnabledFeatures::experimentalWebSocketEnabled()) {
- m_private = NewWebSocketChannelImpl::create(coreDocument.get(), m_channelProxy.get());
- } else {
- m_private = MainThreadWebSocketChannel::create(coreDocument.get(), m_channelProxy.get());
- }
+ m_private = NewWebSocketChannelImpl::create(coreDocument.get(), m_channelProxy.get());
}
WebSocketImpl::~WebSocketImpl()
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698