Index: chrome/browser/chromeos/sim_dialog_delegate.cc |
=================================================================== |
--- chrome/browser/chromeos/sim_dialog_delegate.cc (revision 133597) |
+++ chrome/browser/chromeos/sim_dialog_delegate.cc (working copy) |
@@ -47,14 +47,11 @@ |
// static |
void SimDialogDelegate::ShowDialog(gfx::NativeWindow owning_window, |
SimDialogMode mode) { |
- Profile* profile = ProfileManager::GetDefaultProfileOrOffTheRecord(); |
- HtmlDialogView* html_view = |
- new HtmlDialogView(profile, |
+ views::Widget::CreateWindowWithParent( |
+ new HtmlDialogView(ProfileManager::GetDefaultProfileOrOffTheRecord(), |
BrowserList::GetLastActive(), |
- new SimDialogDelegate(mode)); |
- html_view->InitDialog(); |
- views::Widget::CreateWindowWithParent(html_view, owning_window); |
- html_view->GetWidget()->Show(); |
+ new SimDialogDelegate(mode)), |
+ owning_window)->Show(); |
} |
SimDialogDelegate::SimDialogDelegate(SimDialogMode dialog_mode) |