OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/login/captive_portal_window_proxy.h" | 5 #include "chrome/browser/chromeos/login/captive_portal_window_proxy.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/login/captive_portal_view.h" | 7 #include "chrome/browser/chromeos/login/captive_portal_view.h" |
8 #include "chrome/browser/chromeos/login/helper.h" | 8 #include "chrome/browser/chromeos/login/helper.h" |
9 #include "chrome/browser/chromeos/login/proxy_settings_dialog.h" | 9 #include "chrome/browser/chromeos/login/proxy_settings_dialog.h" |
10 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
| 11 #include "ui/views/widget/widget.h" |
11 | 12 |
12 namespace { | 13 namespace { |
13 | 14 |
14 int kMargin = 50; | 15 int kMargin = 50; |
15 | 16 |
16 } // namespace | 17 } // namespace |
17 | 18 |
18 namespace chromeos { | 19 namespace chromeos { |
19 | 20 |
20 CaptivePortalWindowProxy::CaptivePortalWindowProxy(Delegate* delegate, | 21 CaptivePortalWindowProxy::CaptivePortalWindowProxy(Delegate* delegate, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } | 97 } |
97 | 98 |
98 void CaptivePortalWindowProxy::OnWidgetClosing(views::Widget* widget) { | 99 void CaptivePortalWindowProxy::OnWidgetClosing(views::Widget* widget) { |
99 DCHECK(widget == widget_); | 100 DCHECK(widget == widget_); |
100 DCHECK(captive_portal_view_.get() == NULL); | 101 DCHECK(captive_portal_view_.get() == NULL); |
101 widget->RemoveObserver(this); | 102 widget->RemoveObserver(this); |
102 widget_ = NULL; | 103 widget_ = NULL; |
103 } | 104 } |
104 | 105 |
105 } // namespace chromeos | 106 } // namespace chromeos |
OLD | NEW |