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

Unified Diff: trunk/src/ui/compositor/compositor_observer.cc

Issue 467153002: Revert 289224 "Update ui::CompositorObserver instrumentation" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/ui/compositor/compositor_observer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/compositor/compositor_observer.cc
===================================================================
--- trunk/src/ui/compositor/compositor_observer.cc (revision 289228)
+++ trunk/src/ui/compositor/compositor_observer.cc (working copy)
@@ -8,17 +8,19 @@
namespace ui {
-#if DCHECK_IS_ON
+#if defined(OS_MACOSX)
+// Debugging instrumentation for crbug.com/401630.
+// TODO(ccameron): remove this.
CompositorObserver::CompositorObserver() : observing_count_(0) {}
#else
CompositorObserver::CompositorObserver() {}
#endif
CompositorObserver::~CompositorObserver() {
- // TODO(ccameron): Make this check not fire on non-Mac platforms.
- // http://crbug.com/403011
#if defined(OS_MACOSX)
- DCHECK_EQ(observing_count_, 0);
+ // Debugging instrumentation for crbug.com/401630.
+ // TODO(ccameron): remove this.
+ CHECK_EQ(observing_count_, 0);
#endif
}
« no previous file with comments | « trunk/src/ui/compositor/compositor_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698