Fix ClientVideoDispatcher not to crash during shutdown.
ClientVideoDispatcher was passing base::Unretained() callbacks to
VideoStub which it doesn't own, as result the callback may be called
after the dispatcher is destroyed causing crashes during shutdown.
Fixed ClientVideoDispatcher to use weak pointers for the done callbacks
passed to VideoStub.
BUG=491366
Review URL: https://codereview.chromium.org/1149703005
Cr-Commit-Position: refs/heads/master@{#331489}
2 files changed