diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-17 21:32:42 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-17 21:32:42 +0000 |
commit | c633a4968486f1b6bff7ff2dc9f6e0a73ef41402 (patch) | |
tree | c97e6339511b3b9273e089a89fe01edab1871847 /base/timer_unittest.cc | |
parent | 54002ab61e7fb77f55394b56223b49d407750a09 (diff) | |
download | chromium_src-c633a4968486f1b6bff7ff2dc9f6e0a73ef41402.zip chromium_src-c633a4968486f1b6bff7ff2dc9f6e0a73ef41402.tar.gz chromium_src-c633a4968486f1b6bff7ff2dc9f6e0a73ef41402.tar.bz2 |
Attempt at fixing possible crash in ModalHTMLDialogDelegate. It's
possible to get more than one NOTIFY_WEB_CONTENTS_DISCONNECTED. The
first time ModalHTMLDialogDelegate gets a
NOTIFY_WEB_CONTENTS_DISCONNECTED it sets the contents_ to NULL. This
is problematic because the destructor than removes the observer using
a source of NULL. Instead we should remove the observer immediately,
then NULL out the contents_.
BUG=4129
TEST=covered by QEMU
Review URL: http://codereview.chromium.org/11413
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5575 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/timer_unittest.cc')
0 files changed, 0 insertions, 0 deletions