SupervisedUserService: Expose second custodian's name/email
[chromium-blink-merge.git] / ui / aura / window_observer.cc
blob24d51d47df0a74116cb589dcdd29781bd72b7055
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/aura/window_observer.h"
7 #include "base/logging.h"
8 #include "ui/aura/window.h"
10 namespace aura {
12 WindowObserver::WindowObserver() : observing_(0) {
15 WindowObserver::~WindowObserver() {
16 // TODO(flackr): Remove this check and observing_ counter when the cause of
17 // http://crbug.com/365364 is discovered.
18 CHECK_EQ(0, observing_);
21 void WindowObserver::OnObservingWindow(aura::Window* window) {
22 if (!window->HasObserver(this))
23 observing_++;
26 void WindowObserver::OnUnobservingWindow(aura::Window* window) {
27 if (window->HasObserver(this))
28 observing_--;
31 } // namespace aura