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

Unified Diff: third_party/WebKit/Source/core/fetch/MemoryCache.cpp

Issue 2151933003: Change WTF::TemporaryChange to be an alias for AutoReset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/core/fetch/MemoryCache.cpp
diff --git a/third_party/WebKit/Source/core/fetch/MemoryCache.cpp b/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
index dade33621c1c86616ba772536871ae2abe19f339..0227b002b375ff77cff021be9c483b5376fd1a76 100644
--- a/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
+++ b/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
@@ -711,7 +711,7 @@ void MemoryCache::pruneNow(double currentTime, PruneStrategy strategy)
Platform::current()->currentThread()->removeTaskObserver(this);
}
- TemporaryChange<bool> reentrancyProtector(m_inPruneResources, true);
+ TemporaryChange<bool> reentrancyProtector(&m_inPruneResources, true);
pruneDeadResources(strategy); // Prune dead first, in case it was "borrowing" capacity from live.
pruneLiveResources(strategy);
m_pruneFrameTimeStamp = m_lastFramePaintTimeStamp;

Powered by Google App Engine
This is Rietveld 408576698