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

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

Issue 10204002: Revert 133467 - Convert the last users of DOMView to WebView. (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 133528)
+++ chrome/browser/chromeos/choose_mobile_network_dialog.cc (working copy)
@@ -28,11 +28,14 @@
// static
void ChooseMobileNetworkDialog::ShowDialog(gfx::NativeWindow owning_window) {
- views::Widget::CreateWindowWithParent(
- new HtmlDialogView(ProfileManager::GetDefaultProfileOrOffTheRecord(),
+ Profile* profile = ProfileManager::GetDefaultProfileOrOffTheRecord();
+ HtmlDialogView* html_view =
+ new HtmlDialogView(profile,
BrowserList::GetLastActive(),
- new ChooseMobileNetworkDialog),
- owning_window)->Show();
+ new ChooseMobileNetworkDialog);
+ html_view->InitDialog();
+ views::Widget::CreateWindowWithParent(html_view, owning_window);
+ html_view->GetWidget()->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