| Index: third_party/WebKit/Source/core/fetch/RawResource.cpp
|
| diff --git a/third_party/WebKit/Source/core/fetch/RawResource.cpp b/third_party/WebKit/Source/core/fetch/RawResource.cpp
|
| index 9fde91cf8946ccc2db703d06746f3a187991d02d..c1cb86504573f8f1351e602373960260d761919d 100644
|
| --- a/third_party/WebKit/Source/core/fetch/RawResource.cpp
|
| +++ b/third_party/WebKit/Source/core/fetch/RawResource.cpp
|
| @@ -104,21 +104,20 @@ void RawResource::didAddClient(ResourceClient* c)
|
| return;
|
| ASSERT(RawResourceClient::isExpectedType(c));
|
| RawResourceClient* client = static_cast<RawResourceClient*>(c);
|
| - WeakPtr<RawResourceClient> clientWeak = client->createWeakPtr();
|
| for (const auto& redirect : redirectChain()) {
|
| ResourceRequest request(redirect.m_request);
|
| client->redirectReceived(this, request, redirect.m_redirectResponse);
|
| - if (!clientWeak || !hasClient(c))
|
| + if (!hasClient(c))
|
| return;
|
| }
|
|
|
| if (!response().isNull())
|
| client->responseReceived(this, response(), nullptr);
|
| - if (!clientWeak || !hasClient(c))
|
| + if (!hasClient(c))
|
| return;
|
| if (data())
|
| client->dataReceived(this, data()->data(), data()->size());
|
| - if (!clientWeak || !hasClient(c))
|
| + if (!hasClient(c))
|
| return;
|
| Resource::didAddClient(client);
|
| }
|
|
|