summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/input_window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/input_window.cc')
-rw-r--r--chrome/browser/views/input_window.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/views/input_window.cc b/chrome/browser/views/input_window.cc
index 8d8c24f..a038f09 100644
--- a/chrome/browser/views/input_window.cc
+++ b/chrome/browser/views/input_window.cc
@@ -33,7 +33,7 @@ class ContentView : public views::View,
}
// views::DialogDelegate overrides:
- virtual bool IsDialogButtonEnabled(DialogButton button) const;
+ virtual bool IsDialogButtonEnabled(MessageBox::DialogButton button) const;
virtual bool Accept();
virtual bool Cancel();
virtual void WindowClosing();
@@ -77,9 +77,11 @@ class ContentView : public views::View,
///////////////////////////////////////////////////////////////////////////////
// ContentView, views::DialogDelegate implementation:
-bool ContentView::IsDialogButtonEnabled(DialogButton button) const {
- if (button == DIALOGBUTTON_OK && !delegate_->IsValid(text_field_->GetText()))
+bool ContentView::IsDialogButtonEnabled(MessageBox::DialogButton button) const {
+ if (button == MessageBox::DIALOGBUTTON_OK &&
+ !delegate_->IsValid(text_field_->GetText())) {
return false;
+ }
return true;
}