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

Unified Diff: Source/core/fetch/FetchContext.cpp

Issue 517043003: Move Frame to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Back out non-Oilpan experiment + tidy up by adding frame() ref accessors Created 6 years, 3 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: Source/core/fetch/FetchContext.cpp
diff --git a/Source/core/fetch/FetchContext.cpp b/Source/core/fetch/FetchContext.cpp
index 18c6943e26e177af739016aa4b40174385fa88fc..e95ce8eb59415ba23279adb94a81d8adf2b9a424 100644
--- a/Source/core/fetch/FetchContext.cpp
+++ b/Source/core/fetch/FetchContext.cpp
@@ -36,8 +36,8 @@ namespace blink {
FetchContext& FetchContext::nullInstance()
{
- DEFINE_STATIC_LOCAL(FetchContext, instance, ());
- return instance;
+ DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<FetchContext>, instance, (adoptPtrWillBeNoop(new FetchContext())));
+ return *instance;
}
void FetchContext::dispatchDidChangeResourcePriority(unsigned long, ResourceLoadPriority, int)

Powered by Google App Engine
This is Rietveld 408576698