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

Unified Diff: base/metrics/stats_table.h

Issue 15403002: Remving global statics from the headers, so we can split-link. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding export Created 7 years, 7 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 | « base/logging_unittest.cc ('k') | base/metrics/stats_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/stats_table.h
diff --git a/base/metrics/stats_table.h b/base/metrics/stats_table.h
index d972e7cb9187732a9ba1785cdcc636569d9c1424..0abc2147155b34a4054a5a026b7edd555492005d 100644
--- a/base/metrics/stats_table.h
+++ b/base/metrics/stats_table.h
@@ -52,10 +52,10 @@ class BASE_EXPORT StatsTable {
// For convenience, we create a static table. This is generally
// used automatically by the counters.
- static StatsTable* current() { return global_table_; }
+ static StatsTable* current();
// Set the global table for use in this process.
- static void set_current(StatsTable* value) { global_table_ = value; }
+ static void set_current(StatsTable* value);
// Get the slot id for the calling thread. Returns 0 if no
// slot is assigned.
@@ -185,8 +185,6 @@ class BASE_EXPORT StatsTable {
CountersMap counters_;
ThreadLocalStorage::Slot tls_index_;
- static StatsTable* global_table_;
-
DISALLOW_COPY_AND_ASSIGN(StatsTable);
};
« no previous file with comments | « base/logging_unittest.cc ('k') | base/metrics/stats_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698