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

Unified Diff: third_party/WebKit/Source/platform/LifecycleNotifier.h

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/platform/LifecycleNotifier.h
diff --git a/third_party/WebKit/Source/platform/LifecycleNotifier.h b/third_party/WebKit/Source/platform/LifecycleNotifier.h
index 72d6680d78628c5f095463ca3978c2cf48b343ca..11f3e658182ce23519528992be0c0aaad4e342b9 100644
--- a/third_party/WebKit/Source/platform/LifecycleNotifier.h
+++ b/third_party/WebKit/Source/platform/LifecycleNotifier.h
@@ -28,8 +28,8 @@
#define LifecycleNotifier_h
#include "platform/heap/Handle.h"
+#include "wtf/AutoReset.h"
#include "wtf/HashSet.h"
-#include "wtf/TemporaryChange.h"
namespace blink {
@@ -94,7 +94,7 @@ template<typename T, typename Observer>
inline void LifecycleNotifier<T, Observer>::notifyContextDestroyed()
{
// Observer unregistration is allowed, but effectively a no-op.
- TemporaryChange<IterationState> scope(m_iterationState, AllowingRemoval);
+ AutoReset<IterationState> scope(&m_iterationState, AllowingRemoval);
ObserverSet observers;
m_observers.swap(observers);
for (Observer* observer : observers) {

Powered by Google App Engine
This is Rietveld 408576698