| Index: third_party/WebKit/Source/wtf/WTF.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/WTF.cpp b/third_party/WebKit/Source/wtf/WTF.cpp
|
| index 72767e974cd4909843affe54e05585a659af01b5..9b76061911c88a1e99eee899b77ae7f91fa212a4 100644
|
| --- a/third_party/WebKit/Source/wtf/WTF.cpp
|
| +++ b/third_party/WebKit/Source/wtf/WTF.cpp
|
| @@ -41,31 +41,33 @@ extern void initializeThreading();
|
| bool s_initialized;
|
| bool s_shutdown;
|
|
|
| -void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncreasingTimeFunction, HistogramEnumerationFunction histogramEnumerationFunction, AdjustAmountOfExternalAllocatedMemoryFunction adjustAmountOfExternalAllocatedMemoryFunction)
|
| -{
|
| - // WTF, and Blink in general, cannot handle being re-initialized, even if shutdown first.
|
| - // Make that explicit here.
|
| - RELEASE_ASSERT(!s_initialized);
|
| - RELEASE_ASSERT(!s_shutdown);
|
| - s_initialized = true;
|
| - setCurrentTimeFunction(currentTimeFunction);
|
| - setMonotonicallyIncreasingTimeFunction(monotonicallyIncreasingTimeFunction);
|
| - Partitions::initialize(histogramEnumerationFunction);
|
| - ArrayBufferContents::setAdjustAmoutOfExternalAllocatedMemoryFunction(adjustAmountOfExternalAllocatedMemoryFunction);
|
| - initializeThreading();
|
| +void initialize(TimeFunction currentTimeFunction,
|
| + TimeFunction monotonicallyIncreasingTimeFunction,
|
| + HistogramEnumerationFunction histogramEnumerationFunction,
|
| + AdjustAmountOfExternalAllocatedMemoryFunction
|
| + adjustAmountOfExternalAllocatedMemoryFunction) {
|
| + // WTF, and Blink in general, cannot handle being re-initialized, even if shutdown first.
|
| + // Make that explicit here.
|
| + RELEASE_ASSERT(!s_initialized);
|
| + RELEASE_ASSERT(!s_shutdown);
|
| + s_initialized = true;
|
| + setCurrentTimeFunction(currentTimeFunction);
|
| + setMonotonicallyIncreasingTimeFunction(monotonicallyIncreasingTimeFunction);
|
| + Partitions::initialize(histogramEnumerationFunction);
|
| + ArrayBufferContents::setAdjustAmoutOfExternalAllocatedMemoryFunction(
|
| + adjustAmountOfExternalAllocatedMemoryFunction);
|
| + initializeThreading();
|
| }
|
|
|
| -void shutdown()
|
| -{
|
| - RELEASE_ASSERT(s_initialized);
|
| - RELEASE_ASSERT(!s_shutdown);
|
| - s_shutdown = true;
|
| - Partitions::shutdown();
|
| +void shutdown() {
|
| + RELEASE_ASSERT(s_initialized);
|
| + RELEASE_ASSERT(!s_shutdown);
|
| + s_shutdown = true;
|
| + Partitions::shutdown();
|
| }
|
|
|
| -bool isShutdown()
|
| -{
|
| - return s_shutdown;
|
| +bool isShutdown() {
|
| + return s_shutdown;
|
| }
|
|
|
| -} // namespace WTF
|
| +} // namespace WTF
|
|
|