| Index: chrome/browser/ui/views/simple_message_box_win.cc
|
| diff --git a/chrome/browser/ui/views/simple_message_box_win.cc b/chrome/browser/ui/views/simple_message_box_win.cc
|
| index 167600caa626a1463bd38aea50f01b1e788239af..70ab8a8b976b3825f8580709b4ba146bb5079612 100644
|
| --- a/chrome/browser/ui/views/simple_message_box_win.cc
|
| +++ b/chrome/browser/ui/views/simple_message_box_win.cc
|
| @@ -10,15 +10,10 @@
|
|
|
| namespace chrome {
|
|
|
| -MessageBoxResult ShowMessageBox(gfx::NativeWindow parent,
|
| - const string16& title,
|
| - const string16& message,
|
| - MessageBoxType type) {
|
| - startup_metric_utils::SetNonBrowserUIDisplayed();
|
| -
|
| - if (!parent)
|
| - parent = ui::GetWindowToParentTo(true);
|
| -
|
| +MessageBoxResult NativeShowMessageBox(HWND parent,
|
| + const string16& title,
|
| + const string16& message,
|
| + MessageBoxType type) {
|
| UINT flags = MB_SETFOREGROUND;
|
| if (type == MESSAGE_BOX_TYPE_QUESTION) {
|
| flags |= MB_YESNO;
|
| @@ -34,4 +29,18 @@ MessageBoxResult ShowMessageBox(gfx::NativeWindow parent,
|
| MESSAGE_BOX_RESULT_YES : MESSAGE_BOX_RESULT_NO;
|
| }
|
|
|
| +#if !defined(USE_AURA)
|
| +MessageBoxResult ShowMessageBox(gfx::NativeWindow parent,
|
| + const string16& title,
|
| + const string16& message,
|
| + MessageBoxType type) {
|
| + startup_metric_utils::SetNonBrowserUIDisplayed();
|
| +
|
| + if (!parent)
|
| + parent = ui::GetWindowToParentTo(true);
|
| +
|
| + return NativeShowMessageBox(parent, title, message, type);
|
| +}
|
| +#endif
|
| +
|
| } // namespace chrome
|
|
|