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

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

Issue 10695122: chromeos: Use chrome::ShowWebDialog to avoid depending in web_dialog_view.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/login_web_dialog.cc » ('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
diff --git a/chrome/browser/chromeos/choose_mobile_network_dialog.cc b/chrome/browser/chromeos/choose_mobile_network_dialog.cc
index beb7a3a04ade86675895ae44bf1e8f27438f498a..567d2c601ffa2a3708be50c341f497971d85e86d 100644
--- a/chrome/browser/chromeos/choose_mobile_network_dialog.cc
+++ b/chrome/browser/chromeos/choose_mobile_network_dialog.cc
@@ -6,10 +6,9 @@
#include "chrome/browser/chromeos/login/user_manager.h"
#include "chrome/browser/profiles/profile_manager.h"
-#include "chrome/browser/ui/views/web_dialog_view.h"
+#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/common/url_constants.h"
-#include "ui/views/view.h"
-#include "ui/views/widget/widget.h"
+#include "ui/gfx/size.h"
using content::WebContents;
using content::WebUIMessageHandler;
@@ -26,10 +25,9 @@ namespace chromeos {
// static
void ChooseMobileNetworkDialog::ShowDialog(gfx::NativeWindow owning_window) {
- views::Widget::CreateWindowWithParent(
- new WebDialogView(ProfileManager::GetDefaultProfileOrOffTheRecord(),
- new ChooseMobileNetworkDialog),
- owning_window)->Show();
+ chrome::ShowWebDialog(owning_window,
+ ProfileManager::GetDefaultProfileOrOffTheRecord(),
+ new ChooseMobileNetworkDialog);
}
ChooseMobileNetworkDialog::ChooseMobileNetworkDialog() {
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_web_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698