From 7237402696b827997b0a1a340a44bdc994ed1403 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Fri, 6 Mar 2009 19:19:05 +0000 Subject: Test to see if we can reduce some crashes by deferring delegate destruction until WM_NCDESTROY. This involves adding a specific method to allow delegates to destroy themselves to WindowDelegate, and moving all delete this calls into implementations of that method (to allow delegates to still respond to WM_DESTROY which is legit). Review URL: http://codereview.chromium.org/40192 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11132 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/new_profile_dialog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/views/new_profile_dialog.cc') diff --git a/chrome/browser/views/new_profile_dialog.cc b/chrome/browser/views/new_profile_dialog.cc index 466d91a..7574789 100644 --- a/chrome/browser/views/new_profile_dialog.cc +++ b/chrome/browser/views/new_profile_dialog.cc @@ -75,7 +75,7 @@ std::wstring NewProfileDialog::GetWindowTitle() const { return l10n_util::GetString(IDS_NEW_PROFILE_DIALOG_TITLE); } -void NewProfileDialog::WindowClosing() { +void NewProfileDialog::DeleteDelegate() { delete this; } -- cgit v1.1