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

Unified Diff: chrome/browser/chromeos/login/captive_portal_window_proxy.cc

Issue 63343004: Remove DialogDelegate::UseNewStyle and unused code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore [D]CHECKs and loop scoping. Created 7 years, 1 month 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
Index: chrome/browser/chromeos/login/captive_portal_window_proxy.cc
diff --git a/chrome/browser/chromeos/login/captive_portal_window_proxy.cc b/chrome/browser/chromeos/login/captive_portal_window_proxy.cc
index 60da837f71a9c9ca6d438c65a3481e873941cc28..5e547a2d5fa7669a6e6e4ac2ad508d28490c11e8 100644
--- a/chrome/browser/chromeos/login/captive_portal_window_proxy.cc
+++ b/chrome/browser/chromeos/login/captive_portal_window_proxy.cc
@@ -19,11 +19,9 @@ namespace chromeos {
CaptivePortalWindowProxy::CaptivePortalWindowProxy(
Delegate* delegate,
- gfx::NativeWindow parent,
content::WebContents* web_contents)
: delegate_(delegate),
widget_(NULL),
- parent_(parent),
web_contents_(web_contents) {
DCHECK(GetState() == STATE_IDLE);
}
@@ -62,10 +60,8 @@ void CaptivePortalWindowProxy::Show() {
WebContentsModalDialogManagerDelegate* delegate =
web_contents_modal_dialog_manager->delegate();
DCHECK(delegate);
-
widget_ = views::Widget::CreateWindowAsFramelessChild(
captive_portal_view,
- parent_,
delegate->GetWebContentsModalDialogHost()->GetHostView());
captive_portal_view->Init();

Powered by Google App Engine
This is Rietveld 408576698