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

Unified Diff: chrome/browser/chromeos/sim_dialog_delegate.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 | « chrome/browser/chromeos/login/login_web_dialog.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/sim_dialog_delegate.cc
diff --git a/chrome/browser/chromeos/sim_dialog_delegate.cc b/chrome/browser/chromeos/sim_dialog_delegate.cc
index e13d891b35d4a4db43369c311a9f6a0df9fd2b52..7ca79eae26335aaa653f8c2017109049a53b3f0b 100644
--- a/chrome/browser/chromeos/sim_dialog_delegate.cc
+++ b/chrome/browser/chromeos/sim_dialog_delegate.cc
@@ -7,10 +7,9 @@
#include "base/stringprintf.h"
#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;
@@ -45,10 +44,9 @@ namespace chromeos {
// static
void SimDialogDelegate::ShowDialog(gfx::NativeWindow owning_window,
SimDialogMode mode) {
- views::Widget::CreateWindowWithParent(
- new WebDialogView(ProfileManager::GetDefaultProfileOrOffTheRecord(),
- new SimDialogDelegate(mode)),
- owning_window)->Show();
+ chrome::ShowWebDialog(owning_window,
+ ProfileManager::GetDefaultProfileOrOffTheRecord(),
+ new SimDialogDelegate(mode));
}
SimDialogDelegate::SimDialogDelegate(SimDialogMode dialog_mode)
« no previous file with comments | « chrome/browser/chromeos/login/login_web_dialog.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698