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

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: TemporaryChange -> AutoReset 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..be3e7c21ab24fc8d2bf93378188db81fc1465840 100644
--- a/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
+++ b/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
@@ -28,9 +28,9 @@
#include "platform/weborigin/SecurityOriginHash.h"
#include "public/platform/Platform.h"
#include "wtf/Assertions.h"
+#include "wtf/AutoReset.h"
#include "wtf/CurrentTime.h"
#include "wtf/MathExtras.h"
-#include "wtf/TemporaryChange.h"
#include "wtf/text/CString.h"
namespace blink {
@@ -711,7 +711,7 @@ void MemoryCache::pruneNow(double currentTime, PruneStrategy strategy)
Platform::current()->currentThread()->removeTaskObserver(this);
}
- TemporaryChange<bool> reentrancyProtector(m_inPruneResources, true);
+ AutoReset<bool> reentrancyProtector(&m_inPruneResources, true);
pruneDeadResources(strategy); // Prune dead first, in case it was "borrowing" capacity from live.
pruneLiveResources(strategy);
m_pruneFrameTimeStamp = m_lastFramePaintTimeStamp;
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/UndoStack.cpp ('k') | third_party/WebKit/Source/core/fileapi/FileReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698