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

Unified Diff: chrome/browser/chromeos/choose_mobile_network_dialog.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 | « no previous file | chrome/browser/chromeos/login/html_page_screen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/choose_mobile_network_dialog.cc
===================================================================
--- chrome/browser/chromeos/choose_mobile_network_dialog.cc (revision 133597)
+++ chrome/browser/chromeos/choose_mobile_network_dialog.cc (working copy)
@@ -28,14 +28,11 @@
// static
void ChooseMobileNetworkDialog::ShowDialog(gfx::NativeWindow owning_window) {
- Profile* profile = ProfileManager::GetDefaultProfileOrOffTheRecord();
- HtmlDialogView* html_view =
- new HtmlDialogView(profile,
+ views::Widget::CreateWindowWithParent(
+ new HtmlDialogView(ProfileManager::GetDefaultProfileOrOffTheRecord(),
BrowserList::GetLastActive(),
- new ChooseMobileNetworkDialog);
- html_view->InitDialog();
- views::Widget::CreateWindowWithParent(html_view, owning_window);
- html_view->GetWidget()->Show();
+ new ChooseMobileNetworkDialog),
+ owning_window)->Show();
}
ChooseMobileNetworkDialog::ChooseMobileNetworkDialog() {
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/html_page_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698