diff options
Diffstat (limited to 'chrome/browser/views/edit_keyword_controller.cc')
-rw-r--r-- | chrome/browser/views/edit_keyword_controller.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/views/edit_keyword_controller.cc b/chrome/browser/views/edit_keyword_controller.cc index 1463777d..e0d5ad3 100644 --- a/chrome/browser/views/edit_keyword_controller.cc +++ b/chrome/browser/views/edit_keyword_controller.cc @@ -77,12 +77,9 @@ std::wstring EditKeywordController::GetWindowTitle() const { IDS_SEARCH_ENGINES_EDITOR_NEW_WINDOW_TITLE); } -int EditKeywordController::GetDialogButtons() const { - return DIALOGBUTTON_OK | DIALOGBUTTON_CANCEL; -} - -bool EditKeywordController::IsDialogButtonEnabled(DialogButton button) const { - if (button == DIALOGBUTTON_OK) { +bool EditKeywordController::IsDialogButtonEnabled( + MessageBox::DialogButton button) const { + if (button == MessageBox::DIALOGBUTTON_OK) { return (IsKeywordValid() && !title_tf_->GetText().empty() && IsURLValid()); } return true; |