diff options
Diffstat (limited to 'chrome/views/dialog_client_view.cc')
-rw-r--r-- | chrome/views/dialog_client_view.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/chrome/views/dialog_client_view.cc b/chrome/views/dialog_client_view.cc index 6a9977a..c32b17c 100644 --- a/chrome/views/dialog_client_view.cc +++ b/chrome/views/dialog_client_view.cc @@ -309,11 +309,6 @@ bool DialogClientView::AcceleratorPressed(const Accelerator& accelerator) { // DialogClientView, NativeButton::Listener implementation: void DialogClientView::ButtonPressed(NativeButton* sender) { - // We NULL check the delegate here since the buttons can receive WM_COMMAND - // messages even after they (and the window containing us) are destroyed. - if (!GetDialogDelegate()) - return; - if (sender == ok_button_) { AcceptWindow(); } else if (sender == cancel_button_) { |