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

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: Additional cleanup; sync and rebase. 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..04051c336d85fca6960465588e6a3521161e5cc4 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);
}
@@ -61,11 +59,8 @@ void CaptivePortalWindowProxy::Show() {
DCHECK(web_contents_modal_dialog_manager);
WebContentsModalDialogManagerDelegate* delegate =
web_contents_modal_dialog_manager->delegate();
- DCHECK(delegate);
msw 2013/11/16 04:15:44 I restored this one too.
-
widget_ = views::Widget::CreateWindowAsFramelessChild(
captive_portal_view,
- parent_,
delegate->GetWebContentsModalDialogHost()->GetHostView());
captive_portal_view->Init();

Powered by Google App Engine
This is Rietveld 408576698