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

Unified Diff: Source/modules/websockets/DOMWebSocketTest.cpp

Issue 614373007: Oilpan: Remove adoptRefCountedGarbageCollected (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
Index: Source/modules/websockets/DOMWebSocketTest.cpp
diff --git a/Source/modules/websockets/DOMWebSocketTest.cpp b/Source/modules/websockets/DOMWebSocketTest.cpp
index 5742dd508bfc94e1c53a3fc80b42677a9e61b660..b2d3bacd4a16395b97b3ae26895c842cc64023ed 100644
--- a/Source/modules/websockets/DOMWebSocketTest.cpp
+++ b/Source/modules/websockets/DOMWebSocketTest.cpp
@@ -39,7 +39,7 @@ class MockWebSocketChannel : public WebSocketChannel {
public:
static MockWebSocketChannel* create()
{
- return adoptRefCountedGarbageCollected(new testing::StrictMock<MockWebSocketChannel>());
+ return new testing::StrictMock<MockWebSocketChannel>();
}
virtual ~MockWebSocketChannel()
@@ -67,7 +67,7 @@ class DOMWebSocketWithMockChannel FINAL : public DOMWebSocket {
public:
static DOMWebSocketWithMockChannel* create(ExecutionContext* context)
{
- DOMWebSocketWithMockChannel* websocket = adoptRefCountedGarbageCollectedWillBeNoop(new DOMWebSocketWithMockChannel(context));
+ DOMWebSocketWithMockChannel* websocket = new DOMWebSocketWithMockChannel(context);
websocket->suspendIfNeeded();
return websocket;
}

Powered by Google App Engine
This is Rietveld 408576698