| Index: ui/views/window/dialog_client_view.cc
|
| diff --git a/ui/views/window/dialog_client_view.cc b/ui/views/window/dialog_client_view.cc
|
| index 1c289d3140ebfe7f36a03f6d80ab0430bd09d386..3401fbda2c5a5a0f67286cd7ebf8a22ee2811d1d 100644
|
| --- a/ui/views/window/dialog_client_view.cc
|
| +++ b/ui/views/window/dialog_client_view.cc
|
| @@ -259,7 +259,8 @@ bool DialogClientView::CanClose() {
|
| DialogDelegate* dd = GetDialogDelegate();
|
| int buttons = dd->GetDialogButtons();
|
| bool close = true;
|
| - if (buttons & ui::DIALOG_BUTTON_CANCEL)
|
| + if ((buttons & ui::DIALOG_BUTTON_CANCEL) ||
|
| + (buttons == ui::DIALOG_BUTTON_NONE))
|
| close = dd->Cancel();
|
| else if (buttons & ui::DIALOG_BUTTON_OK)
|
| close = dd->Accept(true);
|
|
|