diff options
Diffstat (limited to 'chrome/browser/views/external_protocol_dialog.cc')
-rw-r--r-- | chrome/browser/views/external_protocol_dialog.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/chrome/browser/views/external_protocol_dialog.cc b/chrome/browser/views/external_protocol_dialog.cc index 50cdce3..2852b60 100644 --- a/chrome/browser/views/external_protocol_dialog.cc +++ b/chrome/browser/views/external_protocol_dialog.cc @@ -43,17 +43,13 @@ ExternalProtocolDialog::~ExternalProtocolDialog() { ////////////////////////////////////////////////////////////////////////////// // ExternalProtocolDialog, views::DialogDelegate implementation: -int ExternalProtocolDialog::GetDialogButtons() const { - return DIALOGBUTTON_OK | DIALOGBUTTON_CANCEL; -} - int ExternalProtocolDialog::GetDefaultDialogButton() const { - return DIALOGBUTTON_CANCEL; + return MessageBoxFlags::DIALOGBUTTON_CANCEL; } std::wstring ExternalProtocolDialog::GetDialogButtonLabel( - DialogButton button) const { - if (button == DIALOGBUTTON_OK) + MessageBoxFlags::DialogButton button) const { + if (button == MessageBoxFlags::DIALOGBUTTON_OK) return l10n_util::GetString(IDS_EXTERNAL_PROTOCOL_OK_BUTTON_TEXT); // Set the button to have a default name. @@ -104,7 +100,7 @@ ExternalProtocolDialog::ExternalProtocolDialog(TabContents* tab_contents, message_text += l10n_util::GetString(IDS_EXTERNAL_PROTOCOL_WARNING); - message_box_view_ = new MessageBoxView(MessageBox::kIsConfirmMessageBox, + message_box_view_ = new MessageBoxView(MessageBoxFlags::kIsConfirmMessageBox, message_text, L"", kMessageWidth); |