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

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

Issue 15947003: Remove the message box dialog black border. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 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_views.cc
diff --git a/chrome/browser/ui/views/simple_message_box_views.cc b/chrome/browser/ui/views/simple_message_box_views.cc
index 62b468ef030f3cf9afc24de64e648b9ba08c10e7..d7c8c2556a216a1b686c1b5dfd20419c39c41828 100644
--- a/chrome/browser/ui/views/simple_message_box_views.cc
+++ b/chrome/browser/ui/views/simple_message_box_views.cc
@@ -175,11 +175,7 @@ MessageBoxResult ShowMessageBox(gfx::NativeWindow parent,
MessageBoxType type) {
scoped_refptr<SimpleMessageBoxViews> dialog(
new SimpleMessageBoxViews(title, message, type));
-
- if (parent)
- views::Widget::CreateWindowWithParent(dialog, parent)->Show();
- else
- views::Widget::CreateWindow(dialog)->Show();
+ views::DialogDelegate::CreateDialogWidget(dialog, NULL, parent)->Show();
#if defined(USE_AURA)
// Use the widget's window itself so that the message loop
« 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