Attempt at fixing crash in balloon code. The current code does a
Widget::Close() and posts a delayed task to cleanup (delete this)
after that. That means there is a window of time between when Close()
completes and the task is run where the widget has been destroyed. I'm
moving cleanup to DeleteDelegate() so there is no window.

This change would also cover the case of the NativeWindow being
deleted out from under the balloon.

BUG=154173
TEST=none
R=ben@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162146 0039d316-1c4b-4281-b951-d872f2087c98
3 files changed