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

Unified Diff: base/at_exit.cc

Issue 10582012: For unit tests, track additions to AtExitManager and warn. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 8 years, 6 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
Index: base/at_exit.cc
diff --git a/base/at_exit.cc b/base/at_exit.cc
index 0fba355698fbebc643fd3225d1323ec64964eb7d..f23b128c0ce73de42ccc9cd925d9a76551d83622 100644
--- a/base/at_exit.cc
+++ b/base/at_exit.cc
@@ -79,4 +79,14 @@ AtExitManager::AtExitManager(bool shadow) : next_manager_(g_top_manager) {
g_top_manager = this;
}
+// static
+AtExitManager* AtExitManager::current() {
+ return g_top_manager;
+}
+
+size_t AtExitManager::CallbackStackSize() {
+ return stack_.size();
+}
+
Paweł Hajdan Jr. 2012/06/22 07:52:42 nit: Remove redundant empty line.
Scott Byer 2012/06/22 22:02:55 Done.
+
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698