| Index: chrome/browser/ui/views/constrained_html_delegate_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/constrained_html_delegate_gtk.cc (revision 83020)
|
| +++ chrome/browser/ui/views/constrained_html_delegate_gtk.cc (working copy)
|
| @@ -69,8 +69,7 @@
|
| ConstrainedHtmlDelegateGtk::ConstrainedHtmlDelegateGtk(
|
| Profile* profile,
|
| HtmlDialogUIDelegate* delegate)
|
| - : views::WidgetGtk(views::WidgetGtk::TYPE_CHILD),
|
| - HtmlDialogTabContentsDelegate(profile),
|
| + : HtmlDialogTabContentsDelegate(profile),
|
| html_tab_contents_(profile, NULL, MSG_ROUTING_NONE, NULL, NULL),
|
| tab_container_(NULL),
|
| html_delegate_(delegate),
|
| @@ -85,7 +84,8 @@
|
| GURL(),
|
| PageTransition::START_PAGE);
|
|
|
| - Init(NULL, gfx::Rect());
|
| + views::Widget::CreateParams params(views::Widget::CreateParams::TYPE_CONTROL);
|
| + GetWidget()->Init(params);
|
|
|
| tab_container_ = new TabContentsContainer;
|
| SetContentsView(tab_container_);
|
|
|