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

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

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 years, 11 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 | « third_party/WebKit/Source/wtf/MainThread.h ('k') | third_party/WebKit/Source/wtf/MathExtras.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/MainThread.cpp
diff --git a/third_party/WebKit/Source/wtf/MainThread.cpp b/third_party/WebKit/Source/wtf/MainThread.cpp
index 6867e09c1b5a2302c096f860489f8564c43bd688..98892939fe9a8717907f4e701711db00fc7e73f0 100644
--- a/third_party/WebKit/Source/wtf/MainThread.cpp
+++ b/third_party/WebKit/Source/wtf/MainThread.cpp
@@ -41,32 +41,29 @@ namespace WTF {
static ThreadIdentifier mainThreadIdentifier;
static void (*callOnMainThreadFunction)(MainThreadFunction, void*);
-void initializeMainThread(void (*function)(MainThreadFunction, void*))
-{
- static bool initializedMainThread;
- if (initializedMainThread)
- return;
- initializedMainThread = true;
- callOnMainThreadFunction = function;
+void initializeMainThread(void (*function)(MainThreadFunction, void*)) {
+ static bool initializedMainThread;
+ if (initializedMainThread)
+ return;
+ initializedMainThread = true;
+ callOnMainThreadFunction = function;
- mainThreadIdentifier = currentThread();
+ mainThreadIdentifier = currentThread();
- AtomicString::init();
- StringStatics::init();
+ AtomicString::init();
+ StringStatics::init();
}
namespace internal {
-void callOnMainThread(MainThreadFunction* function, void* context)
-{
- (*callOnMainThreadFunction)(function, context);
+void callOnMainThread(MainThreadFunction* function, void* context) {
+ (*callOnMainThreadFunction)(function, context);
}
-} // namespace internal
+} // namespace internal
-bool isMainThread()
-{
- return currentThread() == mainThreadIdentifier;
+bool isMainThread() {
+ return currentThread() == mainThreadIdentifier;
}
-} // namespace WTF
+} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/wtf/MainThread.h ('k') | third_party/WebKit/Source/wtf/MathExtras.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698