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 381f9acc30ccc9c2a5a18d1f3be9649cf39bab05..9bc2cd441c69838cb6e650b6cabfdceb2e3c968a 100644 |
--- a/third_party/WebKit/Source/core/fetch/RawResource.cpp |
+++ b/third_party/WebKit/Source/core/fetch/RawResource.cpp |
@@ -132,11 +132,10 @@ void RawResource::didAddClient(ResourceClient* c) |
void RawResource::willFollowRedirect(ResourceRequest& newRequest, const ResourceResponse& redirectResponse) |
{ |
ResourcePtr<RawResource> protect(this); |
- if (!redirectResponse.isNull()) { |
- ResourceClientWalker<RawResourceClient> w(m_clients); |
- while (RawResourceClient* c = w.next()) |
- c->redirectReceived(this, newRequest, redirectResponse); |
- } |
+ ASSERT(!redirectResponse.isNull()); |
+ ResourceClientWalker<RawResourceClient> w(m_clients); |
+ while (RawResourceClient* c = w.next()) |
+ c->redirectReceived(this, newRequest, redirectResponse); |
Resource::willFollowRedirect(newRequest, redirectResponse); |
} |