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

Unified Diff: third_party/WebKit/Source/platform/heap/HeapTest.cpp

Issue 1919663002: Unify and generalize thread static persistent finalization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: generalize clearing Created 4 years, 8 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/heap/HeapTest.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapTest.cpp b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
index 69bd7ef9b8ed7af7e59e385809d0d703b6f8811f..30bdad7d5cacf83f50b0a21da616a9df60562c2a 100644
--- a/third_party/WebKit/Source/platform/heap/HeapTest.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
@@ -6522,7 +6522,7 @@ private:
Persistent<IntWrapper>& handle = *intWrapper;
if (!handle) {
handle = new IntWrapper(42);
- handle.clearOnThreadShutdown();
+ handle.registerAsStaticReference();
}
return *handle;
}

Powered by Google App Engine
This is Rietveld 408576698