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

Unified Diff: third_party/WebKit/Source/platform/exported/Platform.cpp

Issue 2646003003: Avoid checking for WTFThreadData::staticData in wtfThreadData() (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/Source/platform/exported/Platform.cpp
diff --git a/third_party/WebKit/Source/platform/exported/Platform.cpp b/third_party/WebKit/Source/platform/exported/Platform.cpp
index 9cc246e98c19e962e44427a304c646520ea95ee6..b3a9e2a3ccbe216b095bcf6a22e94274c4049fb6 100644
--- a/third_party/WebKit/Source/platform/exported/Platform.cpp
+++ b/third_party/WebKit/Source/platform/exported/Platform.cpp
@@ -41,6 +41,7 @@
#include "public/platform/Platform.h"
#include "public/platform/WebPrerenderingSupport.h"
#include "wtf/HashMap.h"
+#include "wtf/WTFThreadData.h"
namespace blink {
@@ -104,6 +105,10 @@ void Platform::initialize(Platform* platform) {
}
}
+void Platform::initializeThread() {
+ WTFThreadData::initializeOnOffThread();
+}
+
void Platform::shutdown() {
ASSERT(isMainThread());
if (s_platform->m_mainThread) {

Powered by Google App Engine
This is Rietveld 408576698