| Index: chrome/browser/ui/views/simple_message_box_win.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/simple_message_box_win.cc (revision 156397)
|
| +++ chrome/browser/ui/views/simple_message_box_win.cc (working copy)
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/browser/ui/simple_message_box.h"
|
|
|
| #include "chrome/common/startup_metric_utils.h"
|
| +#include "ui/base/win/hwnd_util.h"
|
| #include "ui/base/win/message_box_win.h"
|
|
|
| namespace chrome {
|
| @@ -15,6 +16,9 @@
|
| MessageBoxType type) {
|
| startup_metric_utils::SetNonBrowserUIDisplayed();
|
|
|
| + if (!parent)
|
| + parent = ui::GetWindowToParentTo(true);
|
| +
|
| UINT flags = MB_SETFOREGROUND;
|
| flags |= ((type == MESSAGE_BOX_TYPE_QUESTION) ? MB_YESNO : MB_OK);
|
| flags |= ((type == MESSAGE_BOX_TYPE_INFORMATION) ?
|
|
|