Prevents WebURLLoaderMock to crash when didReceiveResponse calls ::cancel().
commit6b847d8ea35d6974275d489bcdf084e9d8f65d75
authormlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Jun 2014 10:54:22 +0000 (4 10:54 +0000)
committermlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Jun 2014 10:54:22 +0000 (4 10:54 +0000)
treeb88a231dd93e654510ba3a108630ecda56ba4e3c
parent1595e8383f59e8c348d97c918df3ffdacaa8d987
Prevents WebURLLoaderMock to crash when didReceiveResponse calls ::cancel().

The fix is a bit dirty but it should work and is straightforward. The
clean solution would involve more changes on the Blink side or some
wrapping of objects in WebURLLoaderMock.

BUG=None

Review URL: https://codereview.chromium.org/293003004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274758 0039d316-1c4b-4281-b951-d872f2087c98
content/test/weburl_loader_mock.cc
content/test/weburl_loader_mock.h