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

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

Issue 2655853003: Replace StringImpl::empty{16Bit}() with a static member (Closed)
Patch Set: annotate race 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/wtf/ThreadingWin.cpp
diff --git a/third_party/WebKit/Source/wtf/ThreadingWin.cpp b/third_party/WebKit/Source/wtf/ThreadingWin.cpp
index 8808450dd2adb84650d13a0e96fb2232284784f0..3c21d2aa80dce1409d91217c165f1e0bec9eaaa7 100644
--- a/third_party/WebKit/Source/wtf/ThreadingWin.cpp
+++ b/third_party/WebKit/Source/wtf/ThreadingWin.cpp
@@ -148,10 +148,6 @@ void initializeThreading() {
// This should only be called once.
DCHECK(!atomicallyInitializedStaticMutex);
- // StringImpl::empty() does not construct its static string in a threadsafe
- // fashion, so ensure it has been initialized from here.
- StringImpl::empty();
- StringImpl::empty16Bit();
atomicallyInitializedStaticMutex = new Mutex;
wtfThreadData();
initializeDates();
« no previous file with comments | « third_party/WebKit/Source/wtf/ThreadingPthreads.cpp ('k') | third_party/WebKit/Source/wtf/text/AtomicStringTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698