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

Unified Diff: chrome/browser/chromeos/sim_dialog_delegate.cc

Issue 10171006: Convert more users away from DOMView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | « chrome/browser/chromeos/login/web_page_view.cc ('k') | chrome/browser/printing/print_dialog_cloud.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « chrome/browser/chromeos/login/web_page_view.cc ('k') | chrome/browser/printing/print_dialog_cloud.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698