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

Unified Diff: Source/wtf/Partitions.h

Issue 1190883003: Set HistogramEnumerationFunction even when Partitions are initialized (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « no previous file | Source/wtf/Partitions.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/Partitions.h
diff --git a/Source/wtf/Partitions.h b/Source/wtf/Partitions.h
index 858a693e010766d578a06a8cb93c8e87e5624cba..4e85794ec02e46bf1eca3ac6bfa10b6615e29ed3 100644
--- a/Source/wtf/Partitions.h
+++ b/Source/wtf/Partitions.h
@@ -39,7 +39,11 @@ namespace WTF {
class WTF_EXPORT Partitions {
public:
- static void initialize(HistogramEnumerationFunction = nullptr);
+ static void initialize();
+ // TODO(bashi): Remove this function and make initialize() take
+ // HistogramEnumerationFunction when we can make sure that WTF::initialize()
+ // is called before using this class.
+ static void setHistogramEnumeration(HistogramEnumerationFunction);
static void shutdown();
ALWAYS_INLINE static PartitionRootGeneric* bufferPartition()
{
« no previous file with comments | « no previous file | Source/wtf/Partitions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698