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

Unified Diff: third_party/WebKit/Source/wtf/WTF.cpp

Issue 1436153002: Apply clang-format with Chromium-style without column limit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « third_party/WebKit/Source/wtf/WTF.h ('k') | third_party/WebKit/Source/wtf/WTFExport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cd17830b5378eb849802aa370def4a8eb394f77b..8cedd91ffbb1a07c42f3c05dc20bae8f4ba19bde 100644
--- a/third_party/WebKit/Source/wtf/WTF.cpp
+++ b/third_party/WebKit/Source/wtf/WTF.cpp
@@ -42,32 +42,29 @@ extern void initializeThreading();
bool s_initialized;
bool s_shutdown;
-void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncreasingTimeFunction, TimeFunction systemTraceTimeFunction, HistogramEnumerationFunction histogramEnumerationFunction, AdjustAmountOfExternalAllocatedMemoryFunction adjustAmountOfExternalAllocatedMemoryFunction)
-{
- // WTF, and Blink in general, cannot handle being re-initialized, even if shutdown first.
- // Make that explicit here.
- ASSERT(!s_initialized);
- ASSERT(!s_shutdown);
- s_initialized = true;
- setCurrentTimeFunction(currentTimeFunction);
- setMonotonicallyIncreasingTimeFunction(monotonicallyIncreasingTimeFunction);
- setSystemTraceTimeFunction(systemTraceTimeFunction);
- Partitions::initialize(histogramEnumerationFunction);
- ArrayBufferContents::setAdjustAmoutOfExternalAllocatedMemoryFunction(adjustAmountOfExternalAllocatedMemoryFunction);
- initializeThreading();
+void initialize(TimeFunction currentTimeFunction, TimeFunction monotonicallyIncreasingTimeFunction, TimeFunction systemTraceTimeFunction, HistogramEnumerationFunction histogramEnumerationFunction, AdjustAmountOfExternalAllocatedMemoryFunction adjustAmountOfExternalAllocatedMemoryFunction) {
+ // WTF, and Blink in general, cannot handle being re-initialized, even if shutdown first.
+ // Make that explicit here.
+ ASSERT(!s_initialized);
+ ASSERT(!s_shutdown);
+ s_initialized = true;
+ setCurrentTimeFunction(currentTimeFunction);
+ setMonotonicallyIncreasingTimeFunction(monotonicallyIncreasingTimeFunction);
+ setSystemTraceTimeFunction(systemTraceTimeFunction);
+ Partitions::initialize(histogramEnumerationFunction);
+ ArrayBufferContents::setAdjustAmoutOfExternalAllocatedMemoryFunction(adjustAmountOfExternalAllocatedMemoryFunction);
+ initializeThreading();
}
-void shutdown()
-{
- ASSERT(s_initialized);
- ASSERT(!s_shutdown);
- s_shutdown = true;
- Partitions::shutdown();
+void shutdown() {
+ ASSERT(s_initialized);
+ ASSERT(!s_shutdown);
+ s_shutdown = true;
+ Partitions::shutdown();
}
-bool isShutdown()
-{
- return s_shutdown;
+bool isShutdown() {
+ return s_shutdown;
}
-} // namespace WTF
+} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/wtf/WTF.h ('k') | third_party/WebKit/Source/wtf/WTFExport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698