Index: chrome/browser/ui/cocoa/js_modal_dialog_cocoa.mm |
diff --git a/chrome/browser/ui/cocoa/js_modal_dialog_cocoa.mm b/chrome/browser/ui/cocoa/js_modal_dialog_cocoa.mm |
index 0defd120e2dc213b7ab99871836546598e396564..46a7835a307782dee3d2aafa9eb9f03caa84a670 100644 |
--- a/chrome/browser/ui/cocoa/js_modal_dialog_cocoa.mm |
+++ b/chrome/browser/ui/cocoa/js_modal_dialog_cocoa.mm |
@@ -14,7 +14,6 @@ |
#include "grit/generated_resources.h" |
#include "grit/ui_strings.h" |
#include "ui/base/l10n/l10n_util_mac.h" |
-#include "ui/base/message_box_flags.h" |
#include "ui/base/ui_base_types.h" |
// Helper object that receives the notification that the dialog/sheet is |
@@ -106,11 +105,11 @@ JSModalDialogCocoa::JSModalDialogCocoa(JavaScriptAppModalDialog* dialog) |
NSString* other_button = l10n_util::GetNSStringWithFixup(IDS_APP_CANCEL); |
bool text_field = false; |
bool one_button = false; |
- switch (dialog_->dialog_flags()) { |
- case ui::MessageBoxFlags::kIsJavascriptAlert: |
+ switch (dialog_->message_box_type()) { |
+ case ui::MESSAGE_BOX_TYPE_JAVASCRIPT_ALERT: |
one_button = true; |
break; |
- case ui::MessageBoxFlags::kIsJavascriptConfirm: |
+ case ui::MESSAGE_BOX_TYPE_JAVASCRIPT_CONFIRM: |
if (dialog_->is_before_unload_dialog()) { |
default_button = l10n_util::GetNSStringWithFixup( |
IDS_BEFOREUNLOAD_MESSAGEBOX_OK_BUTTON_LABEL); |
@@ -118,7 +117,7 @@ JSModalDialogCocoa::JSModalDialogCocoa(JavaScriptAppModalDialog* dialog) |
IDS_BEFOREUNLOAD_MESSAGEBOX_CANCEL_BUTTON_LABEL); |
} |
break; |
- case ui::MessageBoxFlags::kIsJavascriptPrompt: |
+ case ui::MESSAGE_BOX_TYPE_JAVASCRIPT_PROMPT: |
text_field = true; |
break; |