cc: Crash when trying to call a SingleReleaseCallback twice.
commitc5786342df8d9cb8a460c6416d6faed865d378af
authordanakj <danakj@chromium.org>
Mon, 4 May 2015 21:51:13 +0000 (4 14:51 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 4 May 2015 21:51:47 +0000 (4 21:51 +0000)
tree8aec00f86109ec6a729176a2bd5c8b32f3ac061e
parentde083f980a4e87d47625fef1c0b6c4a6a42b7f7b
cc: Crash when trying to call a SingleReleaseCallback twice.

Currently it would just run the callback a 2nd time, which leads to
a crash later on. Instead we should just crash at the time of the
2nd call so we can see who is mis-using the callback.

R=piman@chromium.org
BUG=483541

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

Cr-Commit-Position: refs/heads/master@{#328195}
cc/resources/single_release_callback.cc
cc/resources/single_release_callback.h
cc/resources/single_release_callback_impl.cc
cc/resources/single_release_callback_impl.h