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

Side by Side Diff: chrome/browser/chromeos/login/captive_portal_window_proxy.cc

Issue 10834079: views: Extract Widget observer into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/captive_portal_window_proxy.h ('k') | chrome/browser/chromeos/status/data_promo_notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698