Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: chrome/browser/ui/views/simple_message_box_win.cc

Issue 10928184: Ensure that message boxes displayed by Chrome in Windows 8 metro mode pass in the metro core window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) ?
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698