Mac: Fix crash related to sad tab page's reload button.
commit5453a7e0bf8fb51813287409df73ad7d1de3ba4e
authorandresantoso <andresantoso@chromium.org>
Wed, 29 Jul 2015 18:43:32 +0000 (29 11:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 29 Jul 2015 18:44:08 +0000 (29 18:44 +0000)
tree3d24b9ebf974e85172979f432b6ba52d7c11074f
parent9bd6368468d43c5eb586a108233a2cf4ab50c9ce
Mac: Fix crash related to sad tab page's reload button.

Sometimes buttons outlive its weakly referenced target because it still has
additional retained references. The target needs to be cleared manually in
these cases.

BUG=513843

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

Cr-Commit-Position: refs/heads/master@{#340931}
chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h
chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.mm