| Index: chrome/browser/ui/views/constrained_html_delegate_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/constrained_html_delegate_gtk.cc (revision 85284)
|
| +++ chrome/browser/ui/views/constrained_html_delegate_gtk.cc (working copy)
|
| @@ -70,7 +70,8 @@
|
| ConstrainedHtmlDelegateGtk::ConstrainedHtmlDelegateGtk(
|
| Profile* profile,
|
| HtmlDialogUIDelegate* delegate)
|
| - : HtmlDialogTabContentsDelegate(profile),
|
| + : views::WidgetGtk(new views::Widget),
|
| + HtmlDialogTabContentsDelegate(profile),
|
| html_tab_contents_(profile, NULL, MSG_ROUTING_NONE, NULL, NULL),
|
| tab_container_(NULL),
|
| html_delegate_(delegate),
|
| @@ -86,10 +87,11 @@
|
| PageTransition::START_PAGE);
|
|
|
| views::Widget::InitParams params(views::Widget::InitParams::TYPE_CONTROL);
|
| + params.native_widget = this;
|
| GetWidget()->Init(params);
|
|
|
| tab_container_ = new TabContentsContainer;
|
| - SetContentsView(tab_container_);
|
| + GetWidget()->SetContentsView(tab_container_);
|
| tab_container_->ChangeTabContents(&html_tab_contents_);
|
|
|
| gfx::Size dialog_size;
|
|
|