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

Unified Diff: third_party/WebKit/public/platform/Platform.h

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/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index d623c5a5d6fa57cb244877de947a0c4d7fd83b0a..a7ee350d6d86e03b2d983e554bc009991bd42328 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -139,6 +139,9 @@ class BLINK_PLATFORM_EXPORT Platform {
static void shutdown();
static Platform* current();
+ // Call when spawning a new thread.
+ static void initializeThread();
+
// Used to switch the current platform only for testing.
// You should not pass in a Platform object that is not fully instantiated.
static void setCurrentPlatformForTesting(Platform*);

Powered by Google App Engine
This is Rietveld 408576698