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

Unified Diff: ui/aura/window_observer.cc

Issue 252963003: Revert of Adds back some debugging code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/window_observer.h ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_observer.cc
diff --git a/ui/aura/window_observer.cc b/ui/aura/window_observer.cc
deleted file mode 100644
index 8f878267b2322fbb9b812c8c86041321e2f2017e..0000000000000000000000000000000000000000
--- a/ui/aura/window_observer.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/aura/window_observer.h"
-
-#include "base/logging.h"
-#include "ui/aura/window.h"
-
-namespace aura {
-
-WindowObserver::WindowObserver() : observing_(0) {
-}
-
-WindowObserver::~WindowObserver() {
- // TODO(flackr): Remove this check and observing_ counter when the cause of
- // http://crbug.com/365364 is discovered.
- CHECK_EQ(0, observing_);
-}
-
-void WindowObserver::OnObservingWindow(aura::Window* window) {
- if (!window->HasObserver(this))
- observing_++;
-}
-
-void WindowObserver::OnUnobservingWindow(aura::Window* window) {
- if (window->HasObserver(this))
- observing_--;
-}
-
-} // namespace aura
« no previous file with comments | « ui/aura/window_observer.h ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698