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

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: Additional fixes. 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..405de98f731dff0b5710730e28cf4088402f4e81 100644
--- a/base/at_exit.cc
+++ b/base/at_exit.cc
@@ -79,4 +79,13 @@ 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() const {
+ return stack_.size();
+}
+
} // namespace base
« no previous file with comments | « base/at_exit.h ('k') | base/test/test_suite.h » ('j') | base/test/test_switches.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698