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

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

Issue 11962021: Revert 177182 - ViewTest.ChangeNativeViewHierarchyFindRoots failure (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | « chrome/browser/ui/views/javascript_app_modal_dialog_views.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/simple_message_box_views.cc
===================================================================
--- chrome/browser/ui/views/simple_message_box_views.cc (revision 177189)
+++ chrome/browser/ui/views/simple_message_box_views.cc (working copy)
@@ -167,10 +167,7 @@
scoped_refptr<SimpleMessageBoxViews> dialog(
new SimpleMessageBoxViews(title, message, type));
- if (parent)
- views::Widget::CreateWindowWithParent(dialog, parent)->Show();
- else
- views::Widget::CreateWindow(dialog)->Show();
+ views::Widget::CreateWindowWithParent(dialog, parent)->Show();
#if defined(USE_AURA)
// Use the widget's window itself so that the message loop
« no previous file with comments | « chrome/browser/ui/views/javascript_app_modal_dialog_views.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698