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

Unified Diff: third_party/WebKit/Source/wtf/MainThread.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/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 3856dbbc73345ec0bde69e56bdafb37cb99d8243..710be4a55478586b7e6c2fade4096dcc25a2e48d 100644
--- a/third_party/WebKit/Source/wtf/MainThread.cpp
+++ b/third_party/WebKit/Source/wtf/MainThread.cpp
@@ -42,32 +42,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