Unmark newly received resources for deletion.
commit17d0de9a9487993d1d65f71735116e3423c7f4e8
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 20 Feb 2014 02:29:48 +0000 (20 02:29 +0000)
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 20 Feb 2014 02:29:48 +0000 (20 02:29 +0000)
treec369d16d08d24020f1a0c90bdf1b35c205e03900
parent550cddd7772c2657f03d526bec343e977dfed1a9
Unmark newly received resources for deletion.

When a child resource is unused for the frame, but is exported, we mark it for
deletion, pending the return from the top-level parent.
However, we may receive that resource again from the child, and start using it,
before we got the return, so at that point we should unmark the resource for
deletion, because leaving it marked will make us return the resource to the
child when we receive it back from the top-level parent.

BUG=342061

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252164 0039d316-1c4b-4281-b951-d872f2087c98
cc/resources/resource_provider.cc
cc/resources/resource_provider_unittest.cc