Index: chrome/browser/ui/views/constrained_window_views.cc |
diff --git a/chrome/browser/ui/views/constrained_window_views.cc b/chrome/browser/ui/views/constrained_window_views.cc |
index 2856118440e942e16e5f7234220b2fefbfb4bae6..1a33300f2170c0b850deacbbd13919bc1226b38e 100644 |
--- a/chrome/browser/ui/views/constrained_window_views.cc |
+++ b/chrome/browser/ui/views/constrained_window_views.cc |
@@ -611,8 +611,19 @@ ConstrainedWindowViews::ConstrainedWindowViews( |
#endif |
Init(params); |
- if (frameless_) |
+ if (frameless_) { |
+ // Set the dialog background color. |
+ if (widget_delegate && widget_delegate->AsDialogDelegate()) { |
+ views::Background* background = views::Background::CreateSolidBackground( |
+ ConstrainedWindow::GetBackgroundColor()); |
+ views::DialogClientView* dialog_client_view = |
+ widget_delegate->AsDialogDelegate()->GetDialogClientView(); |
+ if (dialog_client_view) |
+ dialog_client_view->set_background(background); |
please use gerrit instead
2012/10/11 00:39:40
Adding this back in, because this background is st
|
+ } |
+ |
PositionFramelessWindow(); |
+ } |
ConstrainedWindowTabHelper* constrained_window_tab_helper = |
ConstrainedWindowTabHelper::FromWebContents(web_contents_); |