summaryrefslogtreecommitdiffstats
path: root/chrome/views/view_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/view_unittest.cc')
-rw-r--r--chrome/views/view_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/views/view_unittest.cc b/chrome/views/view_unittest.cc
index 432a47b..9fbf481 100644
--- a/chrome/views/view_unittest.cc
+++ b/chrome/views/view_unittest.cc
@@ -843,8 +843,12 @@ class TestDialogView : public views::View,
}
// views::DialogDelegate implementation:
+ virtual int GetDialogButtons() const {
+ return DIALOGBUTTON_OK | DIALOGBUTTON_CANCEL;
+ }
+
virtual int GetDefaultDialogButton() const {
- return MessageBox::DIALOGBUTTON_OK;
+ return DIALOGBUTTON_OK;
}
virtual View* GetContentsView() {