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

Unified Diff: third_party/WebKit/Source/wtf/Locker.h

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/ListHashSetTest.cpp ('k') | third_party/WebKit/Source/wtf/MainThread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Locker.h
diff --git a/third_party/WebKit/Source/wtf/Locker.h b/third_party/WebKit/Source/wtf/Locker.h
index 39b435da3ff518983ef0cfd2b544da7329588209..5f2105c5d93effecbd42ae148b4cfe6c614336fa 100644
--- a/third_party/WebKit/Source/wtf/Locker.h
+++ b/third_party/WebKit/Source/wtf/Locker.h
@@ -32,15 +32,18 @@
namespace WTF {
-template <typename T> class Locker {
- WTF_MAKE_NONCOPYABLE(Locker);
-public:
- Locker(T& lockable) : m_lockable(lockable) { m_lockable.lock(); }
- ~Locker() { m_lockable.unlock(); }
-private:
- T& m_lockable;
-};
+template <typename T>
+class Locker {
+ WTF_MAKE_NONCOPYABLE(Locker);
+
+ public:
+ Locker(T& lockable)
+ : m_lockable(lockable) { m_lockable.lock(); }
+ ~Locker() { m_lockable.unlock(); }
+ private:
+ T& m_lockable;
+};
}
using WTF::Locker;
« no previous file with comments | « third_party/WebKit/Source/wtf/ListHashSetTest.cpp ('k') | third_party/WebKit/Source/wtf/MainThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698