| Index: ui/views/window/dialog_delegate.cc
|
| diff --git a/ui/views/window/dialog_delegate.cc b/ui/views/window/dialog_delegate.cc
|
| index ef80f818a99dd6a80cbc3099ee5a95a3c10ca30f..9291fc74f785c57c1e7549dc739182994bfe2f7e 100644
|
| --- a/ui/views/window/dialog_delegate.cc
|
| +++ b/ui/views/window/dialog_delegate.cc
|
| @@ -85,6 +85,15 @@ bool DialogDelegate::Accept() {
|
| return true;
|
| }
|
|
|
| +bool DialogDelegate::Close() {
|
| + int buttons = GetDialogButtons();
|
| + if ((buttons & ui::DIALOG_BUTTON_CANCEL) ||
|
| + (buttons == ui::DIALOG_BUTTON_NONE)) {
|
| + return Cancel();
|
| + }
|
| + return Accept(true);
|
| +}
|
| +
|
| base::string16 DialogDelegate::GetDialogLabel() const {
|
| return base::string16();
|
| }
|
|
|